Most Popular
1500 questions
163
votes
7 answers
Can I configure my Linux system for more aggressive file system caching?
I am neither concerned about RAM usage (as I've got enough) nor about losing data in case of an accidental shut-down (as my power is backed, the system is reliable and the data are not critical). But I do a lot of file processing and could use some…
Ivan
- 17,368
- 35
- 93
- 118
163
votes
5 answers
Why is my ethernet interface called enp0s10 instead of eth0?
When I run ifconfig -a, I only get lo and enp0s10 interfaces, not the classical eth0
What does enp0s10 mean? Why is there no eth0?
Nico Rodsevich
- 2,265
- 3
- 15
- 17
162
votes
3 answers
Mount cifs Network Drive: write permissions and chown
I have access to a cifs network drive. When I mount it under my OSX machine, I can read and write from and to it.
When I mount the drive in ubuntu, using:
sudo mount -t cifs -o username=${USER},password=${PASSWORD} //server-address/folder…
Vincent
- 2,778
- 6
- 23
- 28
162
votes
21 answers
How can I set my default shell to start up tmux
I would like my default bash shell to go straight into tmux instead of my always having to type tmux every time.
Michael Durrant
- 41,213
- 69
- 165
- 232
162
votes
3 answers
When to use /dev/random vs /dev/urandom
Should I use /dev/random or /dev/urandom?
In which situations would I prefer one over the other?
Tom Hale
- 28,728
- 32
- 139
- 229
162
votes
5 answers
How to find application's path from command line?
For example, I have git installed on my system.
But I don't remember where I installed it, so which command is fit to find this out?
Anders Lind
- 2,315
- 3
- 21
- 16
162
votes
1 answer
How is Mono magical?
I'm learning C#, so I made a little C# program that says Hello, World!, then compiled it with mono-csc and ran it with mono:
$ mono-csc Hello.cs
$ mono Hello.exe
Hello, World!
I noticed that when I hit TAB in bash, Hello.exe was marked executable.…
cat
- 3,428
- 4
- 22
- 50
162
votes
9 answers
Run a command without making me wait
On the CLI, sometimes a command I type takes a while to complete, and sometimes I know when that's about to happen. I'm a bit confused on "backgrounding" and such in Linux.
What is the most common (or user-friendly way) of telling the CLI that I…
themirror
- 6,898
- 11
- 31
- 36
161
votes
6 answers
Adding a self-signed certificate to the "trusted list"
I've generated a self-signed certificate for my build server and I'd like to globally trust the certificate on my machine, as I created the key myself and I'm sick of seeing warnings.
I'm on Ubuntu 12.04. How can I take the certificate and globally…
Naftuli Kay
- 38,686
- 85
- 220
- 311
161
votes
4 answers
Find and remove large files that are open but have been deleted
How does one find large files that have been deleted but are still open in an application? How can one remove such a file, even though a process has it open?
The situation is that we are running a process that is filling up a log file at a terrific…
dotancohen
- 15,494
- 26
- 80
- 116
161
votes
1 answer
What's the recommended way of copying changes with vimdiff?
When comparing files, and updating a source code repository, I like to use vimdiff. To copy changes made from one file to the other, I usually use a key sequence like this:-
Shift + V (select line)
k or j; { or }; Up or down arrow keys (select more…
Alex Leach
- 7,720
- 4
- 28
- 27
161
votes
13 answers
How to XZ a directory with TAR using maximum compression?
So I need to compress a directory with max compression.
How can I do it with xz? I mean I will need tar too because I can't compress a directory with only xz. Is there a oneliner to produce e.g. foo.tar.xz?
LanceBaynes
- 39,295
- 97
- 250
- 349
161
votes
9 answers
dd vs cat -- is dd still relevant these days?
I recently realized we can use cat as much as dd, and it's actually faster than dd
I know that dd was useful in dealing with tapes where block size actually mattered in correctness, not just performance. In these days, though, are there situations…
kizzx2
- 1,833
- 2
- 12
- 9
161
votes
14 answers
How do I know if dd is still working?
I've not used dd all that much, but so far it's not failed me yet. Right now, I've had a dd going for over 12 hours - I'm writing an image back to the disk it came from - and I'm getting a little worried, as I was able to dd from the disk to the…
eckza
- 2,179
- 5
- 16
- 16
160
votes
13 answers
Convince grep to output all lines, not just those with matches
Say I have the following file:
$ cat test
test line 1
test line 2
line without the search word
another line without it
test line 3 with two test words
test line 4
By default, grep returns each line that contains the search term:
$ grep test…
Michael Mrozek
- 91,316
- 38
- 238
- 232