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
answers376
viewsAutomatic file transfer between PHP servers
I’m creating an application that backs up files to linux servers. It already automatically enters the server and sends commands to perform the backup. My problem is that I want to move the backup…
-
0
votes1
answer156
viewsError Creating mysqli connection
I’m trying to create a connection by MYSQLI but this giving error Fatal error: Call to Undefined Function mysqli_connect() in /home What could that be? That $link = mysqli_connect("localhost", "xx",…
-
0
votes1
answer21773
viewsWhat is the linux command to copy contents from one folder to another folder
I tried the following command cp -avr origem destino The problem is that the command creates a folder inside the destination and the contents inside. What I want is the contents directly in the…
linuxasked 9 years, 1 month ago Amadeu Antunes 3,331 -
0
votes1
answer24
viewsRedirect from domain to sub-domain with htacess
I’m having trouble migrating from one site x to another y in a domain. EX: siteantiquity with. for Subdomain.sitenovo.com I created htacess: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f…
-
0
votes1
answer325
viewsCount number of occurrences in a for in loop {Bash}
I have the following script #!/bin/bash for file in *.jpg; do convert $file -resize 1920x1080! -blur 0x8 alterado$file; echo "A Processar o ficheiro $file" done I want to do an echo with Processor…
-
0
votes1
answer71
viewsComparing char variable in C
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { struct cmd1 { char cmd[20]; }; struct cmd1 cmdd; char cmd_ti[3] = "ti"; char cmd_tela1[2] = "a";…
-
0
votes0
answers673
views -
0
votes0
answers26
viewsFunction to unzip xml does not work on Linux
In my application I use a function to zip the xml files to save them in the database. When I unzip it to make the file available for download the xml does not come complete, at the end of the file…
-
0
votes3
answers280
viewsMake a shell script bash that extracts to a new file all names and nr of women whose number starts with "91"
Consider that there is a "file1.txt" file that you have for example: Name of the person;Sex;Postal code;Cell phone number;Brand of the Cell Phone ... How do I write a shell script bash that extracts…
-
0
votes1
answer880
viewsHow to access Virtual Machine (made in qemu-kvm)
I have a Centos7 Linux server, with no graphical interface. Using Qemu-KVM I was able to install a virtual machine with windows2008server inside it. I used the following command to create the…
linuxasked 8 years, 10 months ago Paulo Luvisoto 907 -
0
votes3
answers50
viewsApache2 error on linux
Guys installed everything right on Linux, I played my folder in the directory www when I opened in the broswer I received the following warning: Access denied for user 'root@localhost' (using…
-
0
votes3
answers3932
viewsHow do you configure phpmyadmin on linux?
I gave one apt-get install phpmyadmin and linux did the installation in the folder etc; rode in the browser http://localhost/phpmyadmin and gave error 404. I changed and played the phpmyadmin folder…
-
0
votes1
answer102
viewsError when compiling Phonegap
When running the command to compile phonegap phonegap build android But you make a mistake: [phonegap] executing 'cordova build android'... Running command:…
-
0
votes0
answers320
viewshttps access to AWS does not work
I’m trying to set up HTTPS to the end user in an EC2 instance on AWS Linux. I even bought the certificate by Rapidssl and followed the steps to try to manually free the access, but I could not. So I…
-
0
votes2
answers381
viewsFile permission on Linux
Hello, my question is not exactly about programming issues, but about Linux and its file access permissions. Recently, I had to change the permissions of two system files into directories that…
-
0
votes2
answers288
viewsRun the TOP command in exec on C - Linux?
Updated code ,it does not execute commands #include <stdlib.h> #include <unistd.h> #include <stdio.h> void ExeclLS(int argc, char **argv) { char *args[] = {"ls", "-aF", "/", 0};…
-
0
votes1
answer53
viewsHelp with GIT recovery
Staff I had performed a backup of my right /.git/ and zipped. However I had problems in this file , I was able to unzip but with errors. I wonder if you have a command to perform a FORCE for it to…
-
0
votes0
answers57
viewsphp class Singleton thread type
I have a class that accesses the service layer of my application. This class is a Singleton. Through the service, it accesses the data in a uniform way, so that my application has the expected…
-
0
votes1
answer124
viewsProblem to install RPM on Ubuntu
I’m trying to install some packages RPM in my Ubuntu, but I am getting dependency failure messages. The strange thing is that all dependencies are already installed in my ONLY. I created a directory…
-
0
votes2
answers1390
viewsWhat is the list command for files starting with "a" and ending with "v"?
I have a.txt file that inside it has adsaadv I would like to search beyond it other files started by and finished by v. I thought of using the grep something like, grep " [a-v$]" a.txt However, I…
linuxasked 8 years, 7 months ago Breno Sobral 23 -
0
votes2
answers768
viewsWhat does -Rf mean after rm?
I have a command in SSH on the platform Magento (installed on a server Apache) to delete the contents of the cache folder rm -rf path/to/folder/* but I’m not really sure what -rf means.…
-
0
votes2
answers453
viewsHow to compact directory except a specific folder via SSH with zip command?
I have to compress all the files and directories of the directory public_html except for var which has more than 60GB. How can I perform this operation via SSH commanding zip? I saw some shapes with…
-
0
votes1
answer583
viewsHow to run a php socket
This script below is a php socket to receive data from a tk102 vehicular tracker. The problem is that I think it has to run in a specific folder on the server and I don’t know how to do it, and…
-
0
votes1
answer97
viewsHow to Link to boost library in codeblocks! (linux Fedora)
Hello, I downloaded the boost.tar file, extracted it, compiled it and installed it in my Fedora 23! But I can’t make codeblocks link to these new libraries. How do I link?
-
0
votes1
answer156
viewsDifferences in Jenkins build?
I set up Jenkins to "build" a project from a git repository, I’m using Maven: Warning: JAVA_HOME Environment variable is not set. Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06;…
-
0
votes0
answers205
viewsBoot failure of Tomcat 8 on Ubuntu 14.04.4
Good morning, everyone. I’m trying to initialize Tomcat 8 in Ubuntu and I’m not getting it. By running the following command "sudo /Tomcat/bin/startup.sh" the following log is generated: Log…
-
0
votes1
answer65
viewsScript with mv Error: cannot move new_name to new_name/original Directory not Empty
Hello, I have the following function below, her goal is to check if the folder exists, and rule out, extract the file .tar.gz and rename. ssl_v="1.0.2g" ABI="armv6" # Clean then Unzip [ -d…
-
0
votes0
answers231
viewsHow to Redirect CNAME to Hosting
I am trying to redirect a domain and a CNAME to an IP at Locaweb. It is a cloud server that generates a temporary link to access the site from the browser. Let’s assume:…
-
0
votes1
answer37
viewsenable rewrite on Linux
Guys I’m trying to enable rewrite in linux ubunto and I’m not getting, it’s different from windows WAMP, someone give me a way? I made this code but it doesn’t work! RewriteEngine on RewriteCond…
-
0
votes1
answer113
viewsNode.js Conflicts: /sbin/Node vs /usr/bin/Node
Good morning, everyone ! I would like someone to exclaim very well this conflict that arises in the installation of the nodejs ? Thanks!
-
0
votes1
answer169
viewsProblems in PM2 - Nodejs
I have a problem with PM2 has ever happened to someone. I start some applications and they usually appear in the list when running pm2 list. But after a few days applications disappear from pm2…
-
0
votes1
answer27
viewsHow to differentiate a url typed by the user and the one invoked by the html code
I need to compile an analytical report for a client about which Urls each network user accessed. However, the reports I’ve been observing show thousands of records that don’t serve that purpose.…
-
0
votes1
answer468
viewsOCI8 in PHP 7 on Linux
I’m in a bit of a pickle.. I have a server running Debian and installed Apache and PHP 7, but I am having problems activating the Oracle Oci8 connection, I followed this tutorial Installing until…
-
0
votes1
answer158
viewsCreate a c file on linux
I have a college job, which I am asked to implement a "C" program that produces files containing random integer numbers of the type long int, where the random numbers must be between 0 and RAND_MAX.…
-
0
votes2
answers654
viewsRuby error after updating Ubuntu
After updating Ubuntu, it no longer loads Ruby or something like that, the error message that returns is: /usr/bin/env: "ruby2.1": File or directory not found Every time I have to start the…
-
0
votes1
answer52
viewsUmake Android error
I have a problem, I installed package by package, but when I went to use the "android umake" or "Sudo umake android", it returns these errors, searched on google, but still not found the solution of…
-
0
votes2
answers2753
viewsCapturing user keystrokes in Python on Linux
import pyHook import pythoncom def tecla_pressionada(evento): # print("Alguma tecla pressionada") print (chr(evento.Ascii)) hook = pyHook.HookManager() hook.KeyDown = tecla_pressionada #sem ()…
-
0
votes1
answer215
viewsNetcat on Linux
I tried using netcat with the -e option and the following error occurred; netcat: invalid option -- 'e' This is nc from the netcat-openbsd package. An alternative nc is available in the…
-
0
votes1
answer844
viewsSet path to save files to Linux
I have a Back-end done in Java where I get some files from the front and save them to a folder. This system ran on a server Windows with Tomcat but recently the same had to be migrated to Debian. In…
-
0
votes0
answers49
viewsHow to install apache 2.2.31 in Edora?
I need to maintain a site that only runs with this configuration: Apache: 2.2.31 php: 5.4.45 mysql: 5.5.50-cll I am trying to set up in fedora23, I have already removed apache related td that was…
-
0
votes2
answers630
viewsIP Blocked remote access mysql linux debian
I’m making the following mistake: [exec] mysqladmin: connect to server at '179.111.225.163' failed [exec] error: 'Access denied for user 'rqtecnologia'@'177.21.38.34' (using password: YES)' I’ve…
-
0
votes1
answer1311
viewsnpm WARN deprecated
I tried to find solution on the net about this error and the ones I found did not work. npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue…
-
0
votes1
answer42
viewsWhere do the ip addr add ips go?
Hello guys okay ? then I’m new with linux and wanted to know where the ips that we added by ip addr add x.x.x.x
linuxasked 8 years, 1 month ago Psicodelico ॐ 69 -
0
votes1
answer127
viewsErrors when compiling program using Mysql resources
I’m learning to use the Mysql, but I had some problems compiling a program, in C, using the resources of Mysql. Follows errors below: gcc: error: Usage:: No such file or directory gcc: error:…
-
0
votes1
answer200
viewsHow to Install Make on MSYS2
I am in need of several commands used with Linux in my windows environment, and although Microsoft is releasing a new shell based on Ubuntu I was not very satisfied with the results and chose to use…
-
0
votes0
answers41
viewsFiles are not changed on the server
We have the following problem, when uploading the files to a Ubuntu 14.04 linux server, the changes made to the files have no effect on the server, only locally, we have already checked the file on…
-
0
votes1
answer496
viewsOpen www with Apache2
Use the Elementary OS, and I have a virtual machine Windows, I want the Windows can access the websites of Apache2 installed on Linux, my local network is already configured, from Windows can give…
-
0
votes0
answers42
viewsHow to ensure that a code in a Cortex-A is running at maximum CPU frequency
When executing a C code I need to execute every 30ms a set of calculations that transforms an image and that is taking up to 100ms which forces me to discard 3 of every 4 frames that I get. How can…
-
0
votes1
answer120
viewsWhile saving file in server folder keeps asking root access
I searched about my problem and only found solutions for host ( none presented applicable to the local server ), does anyone know how I disable this stop ask for the root password every time I save…
-
0
votes1
answer89
viewsInvalid argument in mmap
I want to write to the "server.log" file and when I compile the code, the result is "Invalid argument" in the "mmap" function". void MMP(){ char* addr; int fd; struct stat sb; fd =…