Linux

LINUX QUESTIONS MUST BE PROGRAMMING RELATED. Use this tag only if your question relates to programming using Linux APIs or Linux-specific behavior, not just because you happen to run your code on Linux. If you need Linux support you can try https://unix.stackexchange.com or https://askubuntu.com

54 votes
4 answers
2K views
What are the calling conventions for UNIX & Linux system calls (and user-space functions) on i386 and x86-64

Following links explain x86-32 system call conventions for both UNIX (BSD flavor) & Linux: http://www.int

avatar
Rufus
0 1 0 9
asked 07 September, 2021
52 votes
22 answers
2.5K views
Can you run GUI applications in a Linux Docker container?

How can you run GUI applications in a Linux Docker container? Are there any images that set up vncserver or so

avatar
Denese
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
2.7K views
Docker can't connect to docker daemon

After I update my Docker version to 0.8.0, I get an error message while entering sudo docker version: Client

avatar
Basil
0 1 0 9
asked 07 September, 2021
50 votes
3 answers
389 views
What is the runtime performance cost of a Docker container?

I'd like to comprehensively understand the run-time performance cost of a Docker container. I've fou

avatar
Yolando
0 1 0 9
asked 07 September, 2021
60 votes
29 answers
1.5K views
Argument list too long error for rm, cp, mv commands

I have several hundred PDFs under a directory in UNIX. The names of the PDFs are really long (approx. 60 chars

avatar
Frederick
0 1 0 9
asked 07 September, 2021
65 votes
2 answers
2.2K views
How do SO_REUSEADDR and SO_REUSEPORT differ?

The man pages and programmer documentations for the socket options SO_REUSEADDR and SO_REUSEPORT are different

avatar
Thurman
0 1 0 9
asked 07 September, 2021
55 votes
16 answers
1.7K views
How to force cp to overwrite without confirmation

I'm trying to use the cp command and force an overwrite. I have tried cp -rf /foo/* /bar, but I am still

avatar
Dwain
0 1 0 9
asked 07 September, 2021
68 votes
9 answers
1.1K views
How does "cat << EOF" work in bash?

I needed to write a script to enter multi-line input to a program (psql). After a bit of googling, I found th

avatar
Eddie
0 1 0 9
asked 07 September, 2021
57 votes
27 answers
1.5K views
Convert DOS line endings to Linux line endings in Vim

If I open files I created in Windows, the lines all end with ^M. How do I delete these characters all at once?

avatar
Daniel
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
801 views
How can I measure the actual memory usage of an application or process?

How do you measure the memory usage of an application or process in Linux? From the blog article of Understand

avatar
Tana
0 1 0 9
asked 07 September, 2021
56 votes
9 answers
2K views
Redirect all output to file in Bash

I know that in Linux, to redirect output from the screen to a file, I can either use the > or tee. How

avatar
Cortez
0 1 0 9
asked 07 September, 2021
56 votes
28 answers
2.4K views
Exploring Docker container&apos;s file system

I've noticed with docker that I need to understand what's happening inside a container or what files

avatar
Suzan
0 1 0 9
asked 07 September, 2021
55 votes
14 answers
555 views
How can I exclude directories from grep -R?

I want to traverse all subdirectories, except the "node_modules" directory.

avatar
Keila
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
2K views
How to get full path of a file?

Is there an easy way I can print the full path of file.txt ? file.txt = /nfs/an/disks/jj/home/dir/file.txt

avatar
Boyd
0 1 0 9
asked 07 September, 2021
55 votes
21 answers
389 views
Recursively counting files in a Linux directory

How can I recursively count files in a Linux directory? I found this: find DIR_NAME -type f ¦ wc -l But w

avatar
Dorian
0 1 0 9
asked 07 September, 2021
51 votes
28 answers
1.9K views
Using ls to list directories and their total sizes

Is it possible to use ls in Unix to list the total size of a sub-directory and all its contents as opposed to

avatar
Kristopher
0 1 0 9
asked 07 September, 2021
66 votes
14 answers
983 views
What is the meaning of "POSIX"?

What is POSIX? I have read the Wikipedia article and I read it every time I encounter the term. The fact is th

avatar
Freida
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
1.6K views
How to kill a process running on particular port in Linux?

I tried to close the tomcat using ./shutdown.sh from tomcat /bin directory. But found that the server was not

avatar
Venice
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
2.1K views
Pipe to/from the clipboard in a Bash script

Is it possible to pipe to/from the clipboard in Bash? Whether it is piping to/from a device handle or using an

avatar
Suzan
0 1 0 9
asked 07 September, 2021
65 votes
11 answers
2.6K views
Remove a symlink to a directory

I have a symlink to an important directory. I want to get rid of that symlink, while keeping the directory beh

avatar
Wei
0 1 0 9
asked 07 September, 2021