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
votes1
answer180
viewsError: "Unable to connect to cache daemon: Permission denied" when not using SUDO
I used that command git config --global credential.helper cache to store the login cache in bitbucket when git pull in production. Everything works perfectly when I use the command sudo git pull,…
-
0
votes1
answer266
viewsSED replace the same case and minuscule occurrences with something
I am trying to replace occurrences "strings that appear in the document" with another value in the '' case; I have the following chunk of shell script code mkdir NOVO for script in *.sql do sed…
-
0
votes1
answer62
viewsDoubts about installing php7.0 in Debian 8
Ae galley I am installing php7 on the linux server, Debian8 and wanted to know where I get the listing of all php packages that exist, I know some but I wonder if there is where I see all that are…
-
0
votes2
answers47
viewsInsert filesystem image name in mysql
I use Debian, and I need to capture the image names of a folder and insert the names (as string) into a mysql table. ss:~/folder_img$ 859034809583_img.jpg 458389547389_img.jpg ... This problem has…
-
0
votes0
answers46
viewsHow to isolate an "environment" in Ubuntu?
I have the following problem: work in a place where we use a very specific image editing program that only works on Ubuntu 14.04 (the program is called Register). From time to time, the program…
-
0
votes2
answers131
viewsError of logica shell script
I want to print on the screen a message according to the current time of the day but it always falls on Is, what would be the mistake? It’s 1:00 and I don’t understand what the mistake is.…
-
0
votes1
answer1733
viewserror: (-215:Assertion failed) ! Empty() in Function 'detectMultiScale'
I’m totally layy on linux and I’m trying to use opencv version 3.4.2 with python 3.5.2 on linux Mint to run an example facial detection code. Below the code: import numpy as np import cv2…
-
0
votes2
answers228
viewsHow to use this script for a server list? - Python
Good afternoon, you guys. I am using this code to update some servers here in my company, via ssh: http://alissonmachado.com.br/python-e-ssh/ on line 11, we have:…
-
0
votes2
answers1270
viewsIs the dot and comma character (;) allowed in filenames?
The character ";" is allowed in filenames? In windows you can use the character ";" in naming files without any problem, but I do not know if the same rule is for Mac or Linux. I researched file…
-
0
votes0
answers21
viewsProblems with setuid
I am developing a program that changes my process uid to 0 allowing me to start other root programs. mysu.c #include <stdio.h> #include <unistd.h> int main(int argc, char **args) { int…
-
0
votes1
answer414
viewsMysql commands in Shell Script
I am trying to make a routine to deploy an application, and I came across a problem in shell script, the mysql commands I can’t run inside it, but at the prompt work, which should be done? mysql -u…
-
0
votes0
answers41
viewsLinux Copy file giving replace in content
how could it be done for me to copy a php file via shell script, but replace the contents of a variable? Example: cat config-sample.php > config.php <?php…
-
0
votes0
answers43
viewsWhile and if : Change the while and if checks to varieveis
I am creating a script for automation of a process, but in the script I have to read a directory and insert the content (filename) in a text file and in the while read each line to process the…
-
0
votes1
answer165
viewsPrint memory available in C
How to know the amount of memory available before doing the malloc()? I would like to print the memory value that is still available in order to be allocated, the code has to run on Windows and…
-
0
votes0
answers178
viewsPhpmailer: Error sending from Linux server
I set up an HTML page to send email with Phpmailer, and on my Windows 10 computer it sent normally, but on the online Linux server returns the SMTP error: "SMTP connect() failed.…
-
0
votes0
answers47
viewsDecimal to C binary conversion program
The exercise I’m solving asks to write a program in C(pointer, dynamic and recursive allocation) that prints a given integer on a binary basis. My result is generating a very large number, now I…
-
0
votes1
answer228
viewsDebian Linux Phpmailer: EOF Caught while checking if Connected
Hello! I’m having a problem using Phpmailer for an email sending via an external SMTP. When I try to run the code, it always shows the following error at the end: SMTP -> NOTICE: EOF Caught while…
-
0
votes2
answers37
viewsreuse Javascript between Linux-hosted sites
Before spending energy trying to implement this, I wonder if anyone knows if this is bad practice and if it really works I have some websites hosted with the root folder as follows: Site 1:…
-
0
votes1
answer80
viewsWhy are apache subdominios sending to the default site?
Today I have a PHP system that uses an IP, so it looks like this: http://200.204.203.345/system I’m setting up subdominios to answer the requests and stay that way http://sistema1.empresa.com.br…
-
0
votes1
answer376
viewsBlock comments on bash script
I need to comment on a code block and found the following way it worked: <<COMENTÁRIO meus comentários aqui... ... COMENTÁRIO I wonder if this is the right way to do it, I read on a website…
-
0
votes1
answer55
viewsLinux Package . TAR Autoinstallable
I am following this procedure to create a file compactado autoexecutável but I’m not succeeding, something is missing? Compact the files to pacote.tar.gz I create file pacote.sh with the following…
-
0
votes0
answers616
viewsPHP - Function exec, shell_exec and system do not work properly
Running the example of documentation on the site works. Examples: echo exec('whoami'); $output = shell_exec('ls -l'); echo "<pre>$output</pre>"; My code does not differ so much from the…
-
0
votes1
answer322
viewsLaravel HTTP ERROR 500 linux
I am a full Noob on Linux, was working normally, and Linux installed some updates that suddenly instead of showing the Laravel error screen, I get the screen. HTTP ERROR 500 In the middle of that I…
-
0
votes1
answer485
viewsLINUX - how to use a string as a delimiter in the cut command
How do I use a string in the cut? command: cut -d"String" -f1 but he says it is only possible with a single character.
-
0
votes1
answer57
views -
0
votes0
answers30
viewsError trying to deploy, Repository access denied
I am developing in Laravel, and I can’t use the deployer to deploy to our server in Amazon, our deploy.php looks like this: and we’re getting this bug, notice I seem to be in the right repository…
-
0
votes0
answers307
viewsChange mysql root password on linux!
Good afternoon Personal! I’m new to the world of development and I’m new to linux. I installed the mysql client and server and then installed mysql-workbanch via Xubuntu program center. At no time…
-
0
votes1
answer223
views -
0
votes1
answer43
viewsUse of library in different S.O
Guys,have been developing some projects in C but at a certain time there was the need to use the library "Windows. h". So far so good, the problem is that I develop with Linux and researched about…
-
0
votes1
answer118
viewsString Return to Array
I’m making a shellscript and have the return command: $ sqlite3 banco.db 'select code from channels' 00 01 02 03 When I assign the return to a variable, everything becomes a single string. $ export…
-
0
votes3
answers73
viewsRemove specific line of files on linux
I need to remove a particular line in a file crontab ex: * * * * * root /home/linaro/funcao1.sh * * * * * root /home/linaro/funcao3.sh * * * * * root /home/linaro/funcao4.sh * * * * * root…
-
0
votes1
answer176
viewsArtisan Laravel linux script
I hired a shared server, which performs scheduled tasks (CRON TABLE) via linux scripts (.sh). How to run a command php Artisan (php artisan enviar:emaildiario) within that linux script? UOL server:…
-
0
votes2
answers175
viewsConfirmation of site or host service status
I built this script to run on Linux, but it is not working as expected. I’m using the curl to find the state of the HTTP connection. He returns to me: HTTP/1.1 200 OK Mais alguns conteúdos do site…
-
0
votes0
answers420
viewsAPK installs but does not execute - IONIC
I’m having the following difficulty a few days after generating my APK and installing on my device while trying to open it displays the message the app stopped I took an old Ionic project and added…
-
0
votes0
answers252
viewsWrite to a Shell Script file
I have a problem writing a line in a file using Shell Script. I’ve tried using sed and echo, but in both I don’t have the expected behavior. Using the sed: sed -i -e 'export…
-
0
votes1
answer92
viewsError when recognizing Ubuntu SSH?
Next guys I’m with a serious problem,never happened this problem with me of ssh on linux,from one day to the next ssh key stopped working,I tried to repeat the process to make a new but still…
-
0
votes1
answer57
viewsjavahome installer argument (PSSAV)
Hello, good night, good night! I am in need of installing PSSAV for a college exercise. However it presents the dialog box below: I happen to be with JDK version 8. The information that I can…
-
0
votes0
answers167
viewsdifficulty with access to mysql
I am trying to connect remotely to a mysql in google cloud, but I can’t. in google I created an Ubuntu vm, last version, this is my ip, this dripping normally: I configured the firewall as follows:…
-
0
votes1
answer66
viewsRun Artisan within linux shell script
How do I shell a linux script to run an Artisan command from Laravel? ex: php artisan migrate but create a script to run this command
-
0
votes1
answer178
viewsForce a shell script to run in the terminal
The user will download the script from an internal website and run it. What I wanted was that after downloading the user take two clicks on the script and it runs and not open for editing. There is…
-
0
votes1
answer240
viewsRun sh in java
I am trying to run a file in java with the following command System.out.println("Linux"); String[] env = {"PATH=/bin:/usr/bin/"}; String cmd = System.getProperty( "user.dir" ) +…
-
0
votes1
answer118
viewscat file.txt VS. cat < file.txt
Personal hail, I recently started studying bash Unix and I have a doubt that I can not resolve regarding the command "cat". During the course of Code Academy, it presents the code in two moments:…
-
0
votes1
answer26
viewsHow to place multiple icons according to "mime-type" in the same extension
The idea is very simple: I have a text file: texto.prisma $ file -i text.prism text.prism: text/Plain; charset=utf-8 I have another compiled file: compilado.prisma $ file -i compiled.prism…
-
0
votes0
answers49
viewsStrange Issue Cannot allocate memory with free memory available in centos
I’m facing a really Strange Issue in my vps, well Lets me explain im Getting Many: (12)Cannot allocate memory: [client 172.68.211.52:49792] couldn't create child process: 12: ea-php56 or (12)Cannot…
-
0
votes2
answers1940
viewsDeploy Laravel application
I’m having trouble getting my application up to production environment. I tried several times as I find in step by step and documentation, but the error persists. Current scenario: I moved the…
-
0
votes1
answer103
viewsHow to run a python script in Notepadqq?
when I press "RUN" this window appears
-
0
votes1
answer59
viewsHow to hide files programmatically
A hidden file in a linux environment has a point (.) before its name, so that for example: .arquivo.c is hidden and arquivo.c isn’t. Knowing that, my question is, how to hide a number of files…
-
0
votes0
answers41
viewsHow to know which is the SQL server tool?
I am at Visual Studio 2017 which is connected to the SQL server database ,SQL server is running on the Linux server, this server is running in the cloud. What I am trying to do is copy the database…
-
0
votes0
answers50
viewsFork() - Two processes accessing the same variable
Why in the output he does only the multiplication that is requested in the parent process and does not the sum of the child process? Entree: #include <stdio.h> #include <unistd.h>…
-
0
votes2
answers48
viewsApache slave server
The doubt is quite simple, so I’m sorry for the ignorance. I’m setting up a website with apache and the same will receive thousands of access, the doubt would be, what to do when the access limit of…