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
-
1
votes0
answers31
viewsError running Nancy on Linux (Ubuntu)
Hello I have an application (executable) that I am trying to run on a Linux VM in Azure, it works in the project, but when running with Mono (I have installed everything possible fsharp,…
-
1
votes1
answer38
viewsHow to remove a user from the server?
I use an Ubuntu server and installed Git to share code remotely. I created a Git user with the command: $ sudo adduser git What command should I use to remove a user?…
-
1
votes1
answer1006
viewsHow to create a graph with two axes y with different scales in R?
I’m trying to plot a graph with 3 sets of data. " Precipitation" and "Evapotranspiration" have high values (from 5 to 580) so would use the same scale in Y (on the left side) for both plotted data…
-
1
votes1
answer590
viewsfile_get_contents is generating the error: "Too Many open files"
I have a script running on my server through Supervisord. This script queries the database for pending request processing, and when it does, sends the data of each request to an endpoint of a…
-
1
votes1
answer147
viewsShow only lines that appear more than x times. (shell script)
I am analyzing a log file and I wanted to filter only lines that appear more than 10 times inside the file. Only I’m not finding a way to make this filter.…
-
1
votes1
answer143
viewsList file excluding first letter
I have a file called 1arquivo and I list him normally with the command ls. How can I use ls deleting the first letter to return me only arquivo. It has to be a generic solution because I will have…
-
1
votes0
answers105
viewsLinux SFTP - Certificate requesting password
I need to access an FTP server, from which I have already been sent a certificate called "company.cert". In Windows, using Winscp, I create a connection using this certificate file, and the…
-
1
votes1
answer729
viewsError: "Cannot find Symbol" - Class Instance within Main Class, using Linux terminal
I have an exercise to solve, which consists of creating a simple Java language calculator. I have to send the two numbers through Terminal as arguments to my program. I am using the following build…
-
1
votes0
answers262
viewsList Linux sharing on another Linux desktop
I use an Ubuntu Desktop 16.04. I have a file server on my network but cannot list that server on my Desktop. This server is an Ubuntu Server. Simply no server appears on my network list. When I try…
-
1
votes1
answer789
viewsCan you create a cron to delete files with retroactive dates?
See my need, I have a cron that runs every morning and creates a file.ddmmaaaa.backup on the Linux Kubuntu server, it happens that the hard drive fills up quickly since this backup file has 500MB on…
-
1
votes3
answers282
viewsstrcpy function does not work on Linux
#include <stdio.h> #include <string.h> void envia(char* pdados); int main() { char* link[1000]; strcpy(link,"http://site.com/data.php?dados="); char* dados = "name"; strcat(link,dados);…
-
1
votes1
answer94
views -
1
votes1
answer2799
viewsMakefile returning "Missing Separator" error
I am trying to run a Makefile that Compile programs in 'C'. TARGET=client server CC= gcc CFLAGS= -Wall -Wextra -g LDFLAGS = -lm -pthread -lncurses DEPS = util.h normal: $(TARGET) client: client.c…
-
1
votes1
answer1283
viewsmariadb connection error
Today I installed the lamp in my manjaro and everything was working normally, until I went to test php with mysql and typed the code: $conexao = mysqli_connect('localhost','root','','data'); I…
-
1
votes1
answer296
viewsWhere is the source code of the Python3 commands located?
Where is the source code for the Python3 commands? I want to see the source code for the commands as len(), count(), find(), etc etc. I use Linux Mint, I’ve looked and looked, but I don’t think...…
-
1
votes1
answer388
viewsSFTP - Limit users
I am testing an SFTP server. In my sftp configuration, there is the line "Match Group sftponly". That is, from what I understood only users who are from the group 'sftponly' could access the SFTP.…
-
1
votes1
answer181
viewsUnix Command Grep output manipulation if no result is found
Good morning!! I am creating a script and I need that when I do a grep on a line and do not find it it return me the parameter I searched! grep "192.0.0.1 " /file.txt In the.txt file it does not…
-
1
votes0
answers49
viewsHow to check a CRC
I get 9 bytes per serial where the last two are CRC-16, I need to check this CRC to know if I received the block correctly. buffer[0] = 0x2E; buffer[1] = 0x83; buffer[2] = 0x82; buffer[3] = 0x00;…
-
1
votes1
answer66
viewsProgram without SIGINT signal interruption
I’m trying to write a program that stays on an infinite loop, and can’t be stopped by the SIGINT( C signal on the keyboard). What I have so far is the following code: void sigint(); int main() { int…
-
1
votes2
answers139
viewsCrontab function does not work
I have a php script that performs (should at least) some recordings in a txt: 25 11 * * 1-5 wget -q --spider http://10.24.0.42/felipe_projetos/DD/CREATE_TABLE.NULL.IN.php However, the recording does…
-
1
votes2
answers112
viewsHow to find out what is file and what is directory
The question is as simple as the logic I have here. Logic: Assuming that files should always contain their suffix . png . txt etc... While folders/directories carry nothing but their format name The…
-
1
votes1
answer356
viewsShell script take out extension and search only by name
Someone can fix my script? The purpose of the script is to compare the input files with the files in the folder JUNK, the problem is that if the input file is teste1.txt he cannot find the file…
-
1
votes0
answers241
views -
1
votes0
answers32
viewsIs there any (viable) way to develop Windows software on Linux? Any application for this?
I’m trying to create a cross-Plataform application (for academic reasons), which at least works on Windows and Linux. For development I can only use standard libraries of c/c++ and the native API of…
-
1
votes1
answer472
viewsEnvironment variables will remain
I’m following this tutorial, on Linux, but every time I restart I have to set all the variables again What I have to do to make the settings remain and globally? I’m using Linux Mint Cinamon…
-
1
votes0
answers36
viewsIs there any cross-platform way to use keyboard arrows in c++?
In windows has the library conio.h. if I am not mistaken it is possible to use the arrow keys on the keyboard on Linux using ncurses. h, but I wanted a more cross-platform solution where the same…
-
1
votes3
answers238
viewsRemove all after ? in file name
Hello! I’m trying to rename a large amount of files on linux, but I’m not getting the command right. The case is as follows: I have several files inside a directory and its subdirectories that have…
-
1
votes1
answer33
viewsChange text when entering Amazon C2 host
I searched the site of Amazon and did not find how to change the text that shows when entering, is the one of the image below. Does anyone know the location that changes this text ?…
-
1
votes2
answers217
views -
1
votes0
answers1168
viewsProblem with Spring Tools Suite
I am starting my studies with Spring and downloaded the Spring Tool Suite version 3.9.4. to develop java web applications. I had previously installed JDK version 8. I am using Ubuntu 18.04. Given…
-
1
votes1
answer227
viewsUse additional hard disk space Linux Ubuntu in main drive where apache is located
Good afternoon, you guys, Excuse the question I’m beginner in linux, I will explain my case. I have an instance of 4 Gb ram 80 ssd in google cloud Compute engine with Ubuntu. until then everything…
-
1
votes2
answers459
viewsSpecific libraries and standards of C compilers on Windows and Linux
I’d like to know why I know her. h and the strrev() library string.h, not on Linux. Is there any more that can only be done in Windows? And why does this happen? Is there any that can only be done…
-
1
votes1
answer96
viewsError using Opengl GTX GLM library
I’m trying to compile in linux Ubuntu a project that uses the quaternions for rotation of 3D objects of the glui library, when I compile the code the system accuses the following error : Code says…
-
1
votes1
answer48
viewsZipping folder except a subdirectory
To zip a folder in the Linux use the command below. zip -r arquivoZipado.zip pastaSerZipada/ How can I zip, except for a subdirectory of pastureSerZipada?…
-
1
votes0
answers42
viewsDifferent results 'Count(*) from V$ASM_DISK'
I have a script that connects on an Oracle basis and makes the following select: select count(*) from V$ASM_DISK; This script is in a . sql file, then I make the following call in the OS:…
-
1
votes0
answers176
viewsProblems to unzip files in RAR on Linux UBUNTU
good afternoon! I have a server that runs on a Cloud Web server LINUX UBUNTU SERVER, 7 years ago, I migrated to another local server also with LINUX UBUNTU SERVER. In Cloud Linux APACHE with PHP AND…
-
1
votes0
answers867
viewsNginx does not start
I’m doing some tests with Nginx and I’m trying to error below when I try to start, how do I fix it? systemctl start nginx Job for nginx.service failed because the control process exited with error…
-
1
votes1
answer692
viewsReturn difference between higher and lower array value in Assembly
I am trying to make a code in Assembly with Arq. x86 using NASM. In this code I must return the difference between the highest value and the lowest value of an array, as below. However, when running…
-
1
votes1
answer28
viewsRecord roll in MPI application
I would like to collect statistics from an MPI application To save the application running on a single machine, I can use the command: perf record mpirun -np $NUMBER_OF_CORES app_name However, when…
-
1
votes0
answers67
viewsProxy authentication in Cinnamon
I am configuring a Linux Ubuntu machine with gàafica interface with Cinnamon 3, but are not able to make Google Chrome open a proxy authentication window, I know that Google Chrome uses a proxy…
-
1
votes0
answers37
viewspython sigint and Ctrl c have different effects
Hello, I need to run an executable done in c,this executable performs operations on a board and writes to a file, the problem is that the write event occurs when the program receives a Ctrl+c. I…
-
1
votes1
answer213
viewsLinux - Copy only attributes of files into a folder
At first... I had a problem with my partitioning and needed to reset my hard drive. I am running Linux Mint 19 on Live-CD (USB) to be able to copy the contents of my /home folder (which was on…
-
1
votes3
answers102
viewsLinux - Edit multiple files using another file as source
I have a file (list name.txt) with several names, one per line. I need to edit or remove all the names that are on listanome.txt of several other files With grep I think which files should be…
-
1
votes1
answer200
viewsHow to hide folder in SFTP for a user
Well I create a new user on my host for access to devs, logging in through Putty with the account created only has access to their folder. but when entering SFTP the folders of the host user can be…
-
1
votes1
answer2077
viewsSending file to server via FTP via linux command line
Good morning. I have some doubts regarding a project I’m finishing using linux ( I don’t have much domain ). I have a program written in C that generates files. txt, I must make this program run…
-
1
votes1
answer203
viewsHow to redirect the entire bash script within the script itself?
I need to throw his output into a file instead of playing on the default output which is the screen but without me having to spell it out with the command >> in the terminal, I want the script…
-
1
votes2
answers183
viewsHow to get the Exit code from a command block
Suppose I have the following commands in a script susd systemctl status firewalld If I look at the exit code through echo $? it returns 0 because the last command was executed successfully, but how…
-
1
votes1
answer399
viewsHow to run Processlist periodically on the command line?
Is there any way to see the command SHOW PROCESSLIST from X to X seconds via the command line? I am using Ubuntu 16 Operating System.
-
1
votes0
answers675
viewsHow to delete files from a specific date in linux
Inside a folder I have files from 2006 until 2018 and want to delete only the files of the year 2017 how to do this on linux?
-
1
votes1
answer174
viewsProblem running a shell script using Zenity. Message: Gtk-Message: Gtkdialog Mapped without a Transient Parent. This is discouraged
When I execute script sh. via shell linux, appears this message: Gtk-Message: Gtkdialog Mapped without a Transient Parent. This is discouraged. How do I resolve this issue? #!/bin/bash get_url () {…