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
-
3
votes0
answers228
viewsHow to configure routes in Asterisk ?
Colleagues come through this post bring another doubt to the community, I’m performing a configuration in a central Asterisk that previously had 4 chips from 4 different operators. Now this plant…
-
3
votes3
answers91
viewsBy generating a Docker container, are we lifting a virtual linux passkey in the background?
A container is necessarily tied to a virtual machine, or it is independent?
-
3
votes1
answer810
viewsHow to run linux desktop application remotely via command?
I have a server on a client where I use a remote application, sometimes some user goes there and closes the application (I don’t know if unintentionally or the owner, for fear), so I can’t connect.…
-
3
votes2
answers2549
viewsHow to set Python 3 as default in linux?
When I type the command python, Ubuntu runs Python 2.7. However, in the new versions of Ubuntu, Python 3 is also installed. When I run python -V, appears "Python 2.7.12", but I would like to use the…
-
3
votes2
answers4327
viewsHow to compare the value of a variable to a string in the shell script
Well, I’m trying to make a comparison like this but bash is playing it like a command if "$V1" = "sim" then ... how I compare the value of V1 to the string "yes":…
-
3
votes1
answer55
viewsHow to scan a linux file based on creation time?
I am mounting a backup script and need to create a scan to analyze if any file in a folder was created in the last 7 days, what is the path to it? I know the command ls -lt lists the files in the…
-
3
votes1
answer79
viewsHow do a script accept bash script completion?
Let’s say I have a script that asks for a user input as shown below Digite o caminho do arquivo: How do I make this input autocomplete the directory path in linux? I need this to avoid typos…
-
3
votes1
answer588
viewsIs it possible to send an email via the "sendmail" command from a local machine?
I just learned to use my Amazon server to send emails with the command sendmail. Everything works perfectly. I wanted to know if I could do the same thing through my local machine. Because,…
-
3
votes2
answers1498
viewsConcatenate SH command results on a line
I’m starting to learn Shell Script and I have a question. I’m creating a .sh to take the number of processes running in the OS and export this information in a file .csv. The problem is that I would…
-
3
votes1
answer1362
viewsExchange default address used by Docker (172.17.0.1)
I would like to exchange (or remove) the 172.17.0.1 address used by the Ocker networks, has how to do this? I use Docker for php development and have a remote repository (git) configured via a VPN…
-
3
votes1
answer233
viewsRecover value from PATH environment variable on Linux using Java
I did not find a good topic on this subject and decided to create this question for those who are going through this problem. By using System.getenv("PATH") not listed all values of this environment…
-
3
votes1
answer431
views -
3
votes1
answer527
viewsProblem with special python characters
I have a bot made in Python with the Selenium webdriver, which takes some data from Tesouro Direto and generates a json, however I am facing a problem, which occurs when a special character appears.…
-
3
votes2
answers284
viewsSchedule Crontab task by script.sh
I want to schedule the crontab through a script.sh. I tried to add the following line inside the script.sh: echo "00 01 * * * retag /retag/licenca.sh" >> /etc/crontab It worked, but he adds a…
-
3
votes4
answers249
views -
3
votes1
answer193
viewsHow to mount a Regex to identify the state of the interfaces
Using the command ip link show in the terminal I get the following text: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000link/loopback…
-
3
votes1
answer113
viewsCount letters 'a' from a file, using egrep and wc
I’m doing a directed study on operating systems, and I’ve stalled on that question: 4) Using the egrep programme in conjunction with the programme wc, tell how many letters "a" there are in the…
-
3
votes1
answer137
viewsWhat is the difference between export, set and edit . bash_profile?
I currently use three ways to define environment variables on linux or Mac, because I don’t know what the difference is between 3, someone can explain to me?
-
3
votes3
answers1081
viewserror install virtualenv in python
I can’t create virtualenv, I did a search teaching how to install and when I run the install from it this error here Python version 3.8.3 > root@AlexPc:/# apt install python3-virtualenv Lendo…
-
3
votes1
answer67
viewsHow to count the lines of an output in the terminal?
I want to count the total outputs of the results in the terminal. For example using the cat lista_de_compras.txt: arroz feijão leite I want to receive 3…
-
3
votes2
answers475
viewsConnection error with SQL Server 2012 with Python
I am trying to connect to SQL Server 2012 using Python 3.7 and Ubuntu 20.04.1 LTS as follows: import pyodbc server = 'tcp:192.168.0.7, 1433' database = 'teste' username = 'teste' password = 'teste'…
-
3
votes2
answers413
viewsHow to copy files from one directory to another using regex?
On the linux terminal, when I want to list files in a directory using regex, I do: #exemplo listando arquivos começando com uma letra maiúscula ls | grep -oP '^[A-Z].+' The flag oP is used for…
-
3
votes3
answers117
viewsHow to identify output status in a bash program?
I have a bash that runs a series of scripts in other languages. When I step from one script to another I use the first form of conditional (&&) which I understand as "run the next script if…
-
2
votes1
answer341
viewsHow to import Mysql dumps into UTF-8?
I’m trying to import a dump Mysql (in UTF-8), generated in Windows by Navicat, on a server Centos 6.5 with Mysql 5.5. The problem generated with this is... by executing the following command: mysql…
-
2
votes1
answer1677
viewsHow to autorun a script during Linux inialization?
I am developing a program that should run automatically soon after the startup of Linux. To be more specific I am developing for Debian and to run on Beaglebone Black. I need to run some shell…
-
2
votes2
answers134
viewsHow to display the PGID of running processes?
On Linux, I’d like to know which command I use to display the PGID of the proceedings under implementation. I saw in a reply here on Soept that we could kill a process (command Kill) using the…
-
2
votes1
answer472
viewsgcc is not found when Makefile is run by Travis-CI
I have a C project on Github and I’m trying to build with Travis-CI, but it always shows the error below: Using worker: worker-linux-9-2.bb.travis-ci.org:travis-linux-2 $ export CC=gcc git.1 $ git…
-
2
votes1
answer224
viewsMy site loads different pages on different Operating Systems
I’m going through a very strange problem. When using Windows (Windows 7), my page loads as expected: @extends + index.php Already on Linux (Ubuntu 13.10) it is redirecting me to the route…
-
2
votes2
answers601
viewsProblem with friendly url
I am facing problems with friendly url on my website. My requests loop if I do this: RewriteEngine On Options +FollowSymLinks RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ sessao.php If I…
-
2
votes1
answer121
viewsHow to enable the TAB key in Emacs
Use Debian Linux 7 and I’m auditioning with the editor Emacs for code editing. I have done several customizations in the archive .emacs but I can’t make the TAB key work to indent the codes. When I…
-
2
votes1
answer1956
viewsHow to pass filename with accentuation and spaces as parameter for shell script file
I densenveloped a shell script that gets the location of a file and does several manipulations on it, e.g.: ./processes.sh path/file.txt However, when I send a file name as a parameter that contains…
-
2
votes1
answer964
viewsUbuntu Server 12.04 rcuos processes
Good morning People, I noticed that after updating the packages of Ubuntu server 12.04 the number of processes increased dramatically, running a ps Ax I found this list of processes I had never seen…
-
2
votes1
answer1615
viewsHow to copy SQLITE database from internal memory to SD card command Linux
Good morning, you guys, One day I managed to find the database of an android application I am doing in the internal memory via Linux commands, the application is in Delphi XE but the storage…
-
2
votes3
answers280
viewsHow to Show the file path opened in VIM
Sometimes I leave the file open for a long time, and I don’t know which directory it is in because the environments of my application are separated by path. Ex: prod /loja/prod/app/index.php teste…
-
2
votes1
answer80
viewsComputer clock
Is it possible to calculate the difference between two time records separated by less than one second using the computer clock? For example, between 12h00m00s000ms and 12h00m00s050ms.
-
2
votes1
answer123
viewsHow to make a find on GNU Linux bring some files and ignore others
How to make a find on GNU Linux bring all files from a folder, ignoring the files from a specific subdirectory.
-
2
votes2
answers156
viewsUse separate threads or programs?
I’m developing an application that involves three (maybe more) processes that run simultaneously: an HTTP server, a logger and another that will run the main code. A priori, a simple solution to do…
-
2
votes1
answer392
viewsVagrant with PHP + Mysql + Linux + Puphpet + ZF2 very slow
I have a Windows-mounted environment with ZF2, Doctrine and Mysql that runs very fast. But now I’m experimenting with Vagrant with the machine configured through Puphpet. I managed to make the…
-
2
votes3
answers1147
viewsUpload to another server error
I am trying to record some images on another server pointing the IP and the folder, in my PHP code I pointed the path of the folder $_UP['pasta'] = '\\\\172.23.25.4\\\manutencao\\';and the following…
-
2
votes1
answer1190
viewsAccess denied edit files via SFTP on Ubuntu after upload via Wordpress
I have an Ubuntu VPS (LAMP) and manage PHP files from the folder www via SFTP. I use Wordpress on my server, with it I upload folders and files and I can also delete them. Via Wordpress when I…
-
2
votes2
answers894
viewsProblem with SUDO "must be setuid root"
So I think the title is self-explanatory. I’m beginner in Linux, I went to try to install Steroids (testing environment for hybrid APP’s) following this tutorial (the second, installation), and now…
-
2
votes1
answer1179
viewsCheck if user exists
How can I in bash check if a user exists, but in such a way that script work in multiple systems ? A limited example: grep <username> /etc/passwd Does not work on systems that use NIS or LDAP…
-
2
votes1
answer121
viewsCreate an ALIAS for a . /configure File?
I cloned the Github repository, and to execute the command I always need to type, . /directory name/vv I imagine that this "file" is of the Linux CONFIGURE type, correct? I wonder how I create an…
-
2
votes0
answers192
viewsIt is possible to delete a file if there is no reference from it in the database using mysql
I wonder if anyone knows any way to create a "trigger" in Mysql that when deleting a table value, delete a file together on the server, for example: Excludes the item from tbl_imagens whose name is…
-
2
votes2
answers208
viewsMerge linux commands - rm and diff
I’m learning to use Linux with Opensuse IDE version 13.1. I wonder if it is possible to merge the commands rm -r with diff - r? Goal Remove the files 1.txt,2.txt,2.txt of path1, because it does not…
-
2
votes1
answer573
viewsHow to configure security for dedicated servers and VPS?
I’m having problems with virtualized and dedicated server security settings (VPS). What I need to do to protect my Linux server, with Apache, against major security threats such as rootkits, open…
-
2
votes2
answers199
viewsHow to monitor a C code on Linux
I was trying to use top to monitor the performance of my codes in c, but when I run the program does not appear. Is it just not visible, or can’t monitor code in c using the top? What should I use…
-
2
votes2
answers514
views -
2
votes2
answers1336
viewsModules in Python linux
I’m having some problems installing modules in my python on linux. I’m currently using python 2.7.10, most modules I use Pip to install, but when I run python 2.7.10 and import my module it says it…
-
2
votes1
answer369
viewsIs it possible to prevent Wine from getting viruses? or is it already immune by running on Linux and Mac?
We know that there are viruses for MAC and Linux, this is not the question, the question is whether it is possible to use Windows applications using Wine without contaminating with viruses, this is…