Tag: linux

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
63 votes
15 answers
3.1K views
How do I assign a port mapping to an existing Docker container?

I'm not sure if I've misunderstood something here, but it seems like it's only possible to set

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
50 votes
3 answers
381 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
11 answers
1.8K views
Docker how to change repository name or rename image?

I'm trying to change repository name of the image: REPOSITORY TAG IMAGE ID

avatar
Kisha
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.4K 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
2.9K views
Git asks for username every time I push

Whenever I try to push into my repo git asks for both username & password. I have no problem in re-enter

avatar
Bryant
0 1 0 9
asked 07 September, 2021
60 votes
17 answers
3.1K views
open() in Python does not create a file if it doesn&apos;t exist

What is the best way to open a file as read/write if it exists, or if it does not, then create it and open it

avatar
Benton
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
794 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
549 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
385 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