Most voted "linux" questions
For SOFTWARE DEVELOPMENT issues that are specific to the GNU/Linux operating system. Mere use of shell and desktop, installation and support are not within the scope of the site. If your question is not about development or development but has nothing to do with Linux Apis or Linux-specific behavior you should not use this tag, even if you are running on Linux.
Learn more…1,005 questions
Sort by count of
-
0
votes0
answers200
viewsError running program in C "No such file or directory"
I am trying to run a program in C, but an error occurs I take the following steps: gcc -c prog.c -o prog /.prog And it turns up: bash: /.prog: No such file or directory…
-
0
votes1
answer188
viewsHow to pass a second parameter using . htaccess to php code?
I’m writing my api using . htaccess-friendly urls to do the redirects. When I need to pass a second parameter, I’m having problems My file . htaccesss is like this: RewriteEngine on RewriteCond…
-
0
votes0
answers192
viewsCron does not work
I’m trying to run a file .sh to perform a backup of my database, but for some reason the cron to run this file is not working. I’ve tried to make a lot of changes, but nothing works. All other cron…
-
0
votes1
answer532
viewsRun program on linux in an easier way (generated by Electron)
build with this command ng build --Prod && Electron-packager . gitrun --Platform=linux --Arch=x64 --icon=Assets/icons/logo.png To run the file I have to enter the project folder to open the…
-
0
votes0
answers51
views$_SERVER['LOGON_USER'] equivalent on Linux
In the company where I work, there was an ISS-based PHP5 server, however it is migrating to another Debian-based Apache server with PHP7.0. I enabled the errors of the new server, and I see that I…
-
0
votes1
answer315
viewsAccess permissions on Ubuntu in Angular project
I’m having trouble accessing the files generated by ng new. The problem already starts that I can’t execute the command without the sudo in front. After all Angular folders are generated, the folder…
-
0
votes1
answer20
viewsLaravel 4 application does not write to files
I have an Apache server installed in the Centos 7 Operating System and an application built through the Laravel 4.2 Framework, I have already changed the permissions of the system directories with…
-
0
votes1
answer27
viewsSearch commands in Ubuntu 18.04 applications
I used Ubuntu 16.04 with Unity. In every application I used on the system, when I needed to use a command I didn’t know where to find, I would press the alt key and open a search bar so I could…
-
0
votes1
answer412
viewsUse semicolon instead of comma on numeric keyboard with Linux Mint
I’m using the Linux Mint 19.1 Tessa On my number pad the dot button (.) click inserts comma (,) I tried to enter the settings but did not find the option that makes this change There is how to…
-
0
votes1
answer89
viewsError 500 in php code with linux
I have the following connection to the bank: $pdo = new PDO('mysql:host=localhost;dbname=teste;charset=utf8', 'root', ''); In windows it works perfectly when I started the project on linux from…
-
0
votes2
answers1811
viewsI cannot access my Mysql Mariadb database
I’m on Linux Deepin 15.19 and installed for Web Development, however when I can’t create new databases by Mysql Worckbench say: Your Connection Attempt failed for user 'root' from your host to…
-
0
votes0
answers158
viewsDefault Schema in Mysql
I followed the installation indicated on website mysql. After that, I installed Workbench also by following the command indicated on the official website. In college use Windows in Labs and there…
-
0
votes1
answer29
viewsWhy can’t I create an IPC key with the ~/. bashrc file?
I was working out some school exercises and in the statement there was a question: One can generate an IPC key with the file . bashrc? I not knowing the answer to the question, I created a C program…
-
0
votes1
answer1188
viewsHow to leave a single version of Python on Linux/Ubuntu?
I even understand the fact that there is Python2.7, which in itself is quite annoying because every time I lower the modules to the wrong place, but when I tried to upgrade the version 3.6 to 3.7…
-
0
votes1
answer59
viewsCapture Numbers in File and Save Answer (Linux)
I have a file with the following data: XXZ 000000000000012 MARCIO XXZ 000000000000022 NILSON XXZ 000000000000032 WALTER XXZZZ 000000000000042 CARLOS XXXZZZ 000000000000000 MARIA I would like to skip…
-
0
votes1
answer64
viewsLinux - incorrect result with find and xargs command
I’m trying to list the files of the last day, but through the command below it lists the files of the last day and then starts to list all the files: [oracle@orcl11 adump]$ find . -ctime -1 | xargs…
-
0
votes0
answers47
viewsMongodb installation error
I’m having trouble in step 1: Importe a chave pública usada pelo sistema de gerenciamento de pacotes. When I execute the command: sudo apt-key adv --keyserver hkp: //keyserver.ubuntu.com: 80 --recv…
-
0
votes2
answers42
viewsRename new files without interfering with old ones
I need to rename some files .srt, but if I do it in the current way it will impact the old files. I have several subtitle files that I’ve already edited for pt-BR.srt, but with the addition of new…
-
0
votes1
answer47
viewsI cannot add the React-navigation library to my React-Native project!
I’m trying to use Yarn add React-navigation in my project, but I can’t add the library keeps popping up this error. I have already deleted package.lock.js, however error still appears. info…
-
0
votes0
answers401
viewsError trying any command with apt. E: Malformed entry 1 in list file..."
When trying to use any command with apt, for example: "sudo apt-get update", I am getting the following error: E: Malformed entry 1 in list file /etc/apt/sources.list.d/mongodb-org-4.0.list…
-
0
votes1
answer199
viewsPort not found - Arduino IDE on Linux Mint
Recently I started using Arduino and went through a migration process(windows to linux Mint), I came across a frequent error where the Arduino was not recognized, its port was inaccessible,…
-
0
votes2
answers1387
viewsError running React project Enable "A problem occurred Configuring project ':app'" on Linux Manjaro
I was installing the React Native following the facebook steps, and then when I went to test with the command React-Native run-android happened this error. I’ve set up the android SDK in android…
-
0
votes1
answer103
viewsmysqldump generating the same file with different size
Good morning, you guys. I’m having a bizarre problem using the mysqldump, I’ll try to explain as best I can. I have 4 Databases, and daily a dump is made from each base, generating different files,…
-
0
votes3
answers814
views"code ." does not work on linux Mint (zsh terminal)
I’m trying to use the command "code." zsh terminal to open the folder in vscode, but when I run the command it returns me the following error message: zsh: no such file or directory:…
-
0
votes2
answers1301
viewsLINUX run python script on terminal
I created a simple script in python then a launcher on the desktop to run this script on the terminal but it is not opening the terminal. When I click to open the launcher nothing happens. hello.py…
-
0
votes1
answer40
viewsHow to correctly receive an argument by creating a thread
I’m trying to create a thread to wait a while and then create a second thread using: pthread_create(&thread_intermedia, NULL, criar_thread, &init); where init is an integer, let’s say it is…
-
0
votes1
answer67
viewsThe pip3 command was "broken", what should I do?
all right? I had done some tests to install a library in python and unfortunately I ended up "ruining" the command. The fact is the system does not recognize it as installed, but when using the…
-
0
votes0
answers48
viewsAllow external connection to the database
Guys I have a problem accessing a database that is in a Virtual Machine. I have a machine A that has an application Laravel all configured and the project installed, and has another machine B where…
-
0
votes1
answer176
viewsAdditional Repositories List
Good morning ! I am a beginner in linux and programming, and I had a problem. Using linux Mint 19 When installing libraries on my computer, I installed two identical repositories, and now I can’t…
linuxasked 4 years, 9 months ago Carlos Ceagah 9 -
0
votes1
answer414
viewsCommand not found bash
I am encountered the following error while running this script: line 7: [1: command not found #!/bin/bash #$ for counter in $(seq 1 255); do curl -X POST -H 'Content-Type: application/json'…
-
0
votes2
answers61
viewsGet the number of files contained in a directory
I’m using the following script: import os ler = os.system('ls livros | wc -l') print(ler) The goal was the variable ler receive the number of existing files inside a directory but it always gets the…
-
0
votes1
answer193
viewsCron having trouble running PHP file
I have a problem executing my tasks in Cron. When I access the script to be run by the browser it works normally, but when it is run by cron, I get the following error: PHP Warning:…
-
0
votes1
answer406
viewsHow to uninstall R on linux?
I am trying to uninstall the R from my machine. As I use linux, I used the command sudo apt-get remove r-base and the operation was successfully completed. But after giving the R command on the…
-
0
votes1
answer171
viewsHow to run a virtual python Environment on the linux crontab?
created a virtual Environment: python -m venv test pip install -r requirement.txt And I created a scrip C:\fnord\Documents\Scripts_python\test\Scripts\test.py So, how should I proceed to create…
-
0
votes1
answer61
viewsEncoding error in SQL Server Docker
My mistake is this: Type: Error Message: Undefined class constant 'SQLSRV_ENCODING_UTF8' Filename: /var/www/html/api.dev/public/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php My PHP…
-
0
votes1
answer2790
viewsWhat command to display the WSL version
What’s the powershell command for the WSL version? I’ve tried: wsl --list --verbose does not list anything (Windows 10 version 1909)
-
0
votes1
answer623
viewsUndefined Function Error: Call to Undefined Function curl_init()
I am using Laravel 5.8 on a Debian Linux System with php 7.4 and implementing a function in which I need to perform a Curl: $curl = curl_init(); The code already points error when defining only the…
-
0
votes1
answer34
viewsSocket error in C recv(), send() // SERVER [CLOSED]
I am new in c and in the area of networks, went to create a code in c to put into practice the theory, however, after bindar and create the connect socket, any function like recv() or send() returns…
-
0
votes1
answer199
viewsProblem with variables that receive content from a shell command
I have a problem in a shell script I’m using for a test for a future task. The script is simple... I have a text file that has 2 columns with the delimiter ";". In the first column there are…
-
0
votes0
answers44
viewsNetbeans on Linux Mint
Hello, I am a Distro Mint Linux user, when I open the Terminal and type netbeans the program opens, but in the terminal I see the following message: WARNING: An illegal reflective access operation…
-
0
votes1
answer250
viewsRun PHP command in Centos 7 via shell_exec()
I’m starting in PHP, I want to make a page that triggers some commands on the Linux server. (Ex.: through a button, run a "service dhcpd Restart" or ". /Restart-Tomcat.sh" When I run this…
-
0
votes0
answers7
viewsIs it possible to install Visual Studio on Linux?
I was seeing some advantages in using Visual Studio, in place of VS Code,
-
0
votes1
answer37
viewsWhat is the difference between these string manipulations in C
Good morning! I’m learning C and I had a question about using strings, I wanted to know if there is difference to use this form: char palavra[255]; printf("Digite uma palavra: "); setbuf(stdin, 0);…
-
0
votes1
answer26
viewsError starting Project with React Native
when running the npx command React-Native init App The following error occurs I do not know what is happening, I installed everything right but appears this error.…
-
0
votes1
answer25
viewsClose ports that start when switching on the system
Good morning, I am using Ubuntu 20.10, I have the problem that whenever I start the computer, it is starting with certain open ports, such as ssh, http, postgresql and ipp. Are there any settings…
-
0
votes0
answers42
viewsSearch in text GIANT
I have here with me, a giant text, AMAZING, is a txt of approximately 30 GIGABYTES, it is compressed in 7z I want to ask for your help, to know how I can do research within it, like a cat | grep,…
-
0
votes2
answers388
viewsShell Script Compare multiline variable values with string
Talk people! How do I compare a multiline variable (2 lines) with a string and have to validate one line at a time the contents of the variable is: ambient_1 ambient_2 code test you: #!/bin/bash…
-
0
votes1
answer16
viewsusing Sox to compare duration of an audio file with a variable
good afternoon. I would like the help of the people. I am writing a scrip to separate songs in function from their duration in seconds using the soxi command of the Sox(apt install Sox) package. I…
-
0
votes0
answers42
viewsProblem: Python 3.8 in Visual Studio Code in terminal Does not accept Accents, How to Resolve ? Linux Ubuntu 20.4
I’m with this problem, I tried to change the settings in visual Studio Code and nothing, I did not find anything on the internet about it, outside the terminal the Apare accent normally now in the…
-
0
votes1
answer42
viewsWhy user is created but password does not work?
Good afternoon guys I am building a script to create user and password on linux (Ubuntu 16.04LTS). The problem is that after running my script the user is created but I can’t log in with the…