Most Popular
1500 questions
116
votes
2 answers
What does the 's' attribute in file permissions mean?
Please compare the following two lines:
-rws---r-x 1 root root 21872 2009-10-13 21:06 prg1
-rwx---r-x 1 root root 21872 2009-10-13 21:06 prg2
Does the setuid bit on prg1, along with the read and execute bits for 'other' mean that any user can…

anders
- 1,263
115
votes
25 answers
How to get my own IP address and save it to a variable in a shell script?
How can I get my own IP address and save it to a variable in a shell script?

The Student
- 3,529
115
votes
6 answers
On-the-fly monitoring HTTP requests on a network interface?
For debugging purposes I want to monitor the http requests on a network interface.
Using a naive tcpdump command line I get too much low-level information and the information I need is not very clearly represented.
Dumping the traffic via tcpdump…

maxschlepzig
- 57,532
115
votes
11 answers
How to solve the issue that a Terminal screen is messed up? (usually after a resizing)
Sometimes, a terminal screen is messed up, and when we use man ls to read the manpages, or press the UP arrow to go to previous commands in history, the screen will show characters not as the right place. (for example, treat the end of screen as…

nonopolarity
- 3,069
115
votes
5 answers
ssh-add returns with: "Error connecting to agent: No such file or directory"
ssh-add alone is not working:
Error connecting to agent: No such file or directory
How should I use that tool?

Wong Jia Hau
- 1,269
115
votes
8 answers
Set volume from terminal
Is it possible to set the audio volume using the terminal instead of clicking the speaker icon in the top bar?
The reason I want to do this is that my keyboard does not have volume increase/decrease buttons and I find it annoying to reach for the…

Tristian
- 1,539
115
votes
3 answers
How to copy files from the folder without the folder itself
I'm trying to copy files and subfolders from A folder without the A itself. For instance, A folder contains next:
| file1.txt
| file2.txt
| subfolder1
Executing next command gives me wrong result:
sudo cp -r /home/username/A/…

pushandpop
- 1,386
- 2
- 10
- 11
115
votes
2 answers
Why does Ctrl-D (EOF) exit the shell?
Are you literally "ending a file" by inputting this escape sequence, i.e. is the interactive shell session is seen as a real file stream by the shell, like any other file stream? If so, which file?
Or, is the Ctrl+D signal just a placeholder which…

Geeb
- 2,131
- 2
- 16
- 17
114
votes
13 answers
What is the benefit of compiling your own linux kernel?
What benefit could I see by compiling a Linux kernel myself? Is there some efficiency you could create by customizing it to your hardware?

jjclarkson
- 2,147
114
votes
4 answers
what is the CentOS equivalent of /var/log/syslog (on Ubuntu)?
On ubuntu this file exists: /var/log/syslog.
However the same file does not appear on CentOS Distributions. What is the equivalent file on CentOS?

brakertech
- 1,395
114
votes
5 answers
Does the shebang determine the shell which runs the script?
This may be a silly question, but I ask it still. If I have declared a shebang
#!/bin/bash
in the beginning of my_shell_script.sh, so do I always have to invoke this script using bash
[my@comp]$bash my_shell_script.sh
or can I use…

jrara
- 2,089
114
votes
11 answers
Block network access of a process?
Is it possible to block the (outgoing) network access of a single process?

larkee
- 1,243
114
votes
6 answers
What does "The following packages have been kept back" mean?
When doing an apt-get upgrade I sometimes get a message saying "The following packages have been kept back". For example:
$ sudo apt-get upgrade
Reading…

Charles Roper
- 1,245
114
votes
2 answers
Is Vim immune to copy-paste attack?
You should never paste from web to your terminal. Instead, you should paste to your text editor, check the command and then paste to the terminal.
That's OK, but what if Vim is my text editor? Could one forge a content that switches Vim to command…

Adam Trhon
- 1,623
114
votes
6 answers
zipimport.ZipImportError: can't decompress data; zlib not available
On RHEL 6.6, I installed Python 3.5.1 from source. I am trying to install pip3 via get-pip.py, but I get
Traceback (most recent call last):
File "get-pip.py", line 19177, in
main()
File "get-pip.py", line 194, in main
…

Flair
- 1,241