Most Popular
1500 questions
100
votes
2 answers
What do the symbols displayed by ls -F mean?
I noticed that if I run ls -F on a directory, some of the entries have a * or a @ after them.
spuder@ubuntu:~$ ls -F /sbin
acpi_available* getpcaps* lvmconf* ntfscp* start-stop-daemon*
agetty* getty* …
spuder
- 17,643
- 36
- 91
- 119
100
votes
4 answers
How to specify key in SSHFS?
I've got a question that I've not been able to find an answer for. I have two computers, both of which run Ubuntu Linux 12.04. I have set up my first computer ("home") to be able to SSH into my second computer ("remote") using public/private RSA key…
J L
- 1,133
- 2
- 8
- 8
100
votes
11 answers
How to view a binary file?
From what I understand, a compiler makes a binary file that consists of 1's and 0's that a CPU can read. I have a binary file but how do I open it to see the 1's and 0's that are there? A text editor says it can't open it...
P.S. I have an assembly…
Martin Zeltin
- 1,151
- 2
- 8
- 6
100
votes
2 answers
Difference between .xinitrc, .xsession and .xsessionrc
I found three configuration files.
.xinitrc
.xsession
.xsessionrc
I know that the first one is for using startx and the second and third are used when using a display manager. But what is the difference between the last two?
lockdoc
- 1,141
- 2
- 8
- 8
100
votes
2 answers
Why do we need to use visudo instead of directly modifying the sudoers file?
I understand that if you want to modify who can use sudo and what they can do with it that you should use visudo. I know I'm not supposed to directly modify the /etc/sudoers file myself.
What is it that visudo does that directly modifying the file…
Dason
- 1,102
- 2
- 8
- 13
100
votes
13 answers
Do I need swap space if I have more than enough amount of RAM?
From what I understand, the purpose of a swap partition in Linux is to free up some "not as frequently accessed" information from RAM and move it to a specific partition on your harddrive (at the cost of making it slower to read from or write to),…
IQAndreas
- 10,145
- 21
- 59
- 79
100
votes
2 answers
Difference between 'echo' and 'echo -e'
What is the difference between echo and echo -e?
And which quotes ("" or '') should be used with the echo command? i.e: echo "Print statement" or echo 'Print statement'?
Also, what are the available options that can be used along with echo?
Venkatesh
- 1,141
- 2
- 7
- 8
100
votes
2 answers
What is kernel ip forwarding?
I have seen on many blogs, using this command to enable IP forwarding while using many network security/sniffing tools on linux
echo 1 > /proc/sys/net/ipv4/ip_forward
Can anyone explain me in layman terms, what essentially does this command do?…
Madhur Ahuja
- 1,501
- 3
- 12
- 14
100
votes
16 answers
sort but keep header line at the top
I am getting output from a program that first produces one line that is a bunch of column headers, and then a bunch of lines of data. I want to cut various columns of this output and view it sorted according to various columns. Without the headers,…
jonderry
- 2,039
- 4
- 19
- 19
100
votes
4 answers
How can I add an application to the GNOME application menu?
I have an application that I start only from the command line. How can I add the command (and preferably a nice logo) to Gnome's application menu?
mart
- 1,269
- 2
- 10
- 12
99
votes
4 answers
Replacing only specific variables with envsubst
I'm trying to perform environment variable replacement through envsubst, but I want to only replace specific variables.
From the docs I should be able to tell envsubst to only replace certain variables but I'm failing to be able to do that.
For…
João Angelo
- 1,093
- 1
- 8
- 6
99
votes
10 answers
How to work around "Release file expired" problem on a local mirror
I have a local mirror (created with debmirror), and when I run apt-get update after a few days, I get this:
E: Release file expired, ignoring file:/home/wena/.repo_bin/dists/sid/Release (invalid since 14h 31min 45s)
How do I work around that?
tshepang
- 64,472
- 86
- 223
- 290
99
votes
5 answers
How to create a simple .txt (text) file using terminal?
I'm just trying to review basic terminal commands. Having said that, how do I create a text file using the terminal only?
Mike Wentworth
- 1,213
- 3
- 12
- 15
99
votes
5 answers
Recover cron jobs accidently removed with crontab -r
I entered crontab -r instead of crontab -e and all my cron jobs have been removed.
What is the best way (or is there one) to recover those jobs?
Teerath Kumar
- 1,095
- 1
- 7
- 8
99
votes
8 answers
Into which directory should I install programs in Linux?
I want to install a program in Linux and run it as a daemon. (Team Speak 3 in this case, but the question is general in nature). There is no package provided, only tarred binaries.
Where in the directory structure should I put such a program by…
Eiver
- 1,145
- 1
- 8
- 9