Tips on Unix utilities and related topics from @JohnDCook.

'The enjoyment of one's tools is an essential ingredient of successful work.' -- Donald E. Knuth
12
334
622
The unmount command is umount, no 'n'. Prime candidate for an alias.
1
19
2,669
Unix tool tip retweeted
Now I just think of this old guy whenever I use tar. That’s how I remember it.
How long have you been using Linux? 20 years. So you must be good with tar commands?
44
235
3,556
107,394
sha1sum - compute and check SHA1 message digest
1
12
2,608
xdg-open will open a file from the commandline using the application associated with its file extension.
15
2,682
sed command to delete the last line of a file: $d
1
22
2,714
Take every 10th line from a file: awk '!(NR % 10)' file
2
3
20
2,764
sort -c doesn't sort but checks whether a file is sorted, reporting first exception if not sorted.
1
24
2,752
If you only need to know the number of lines in a large file, wc -l is much faster than wc.
4
21
2,747
Suppress file name when searching over multiple files: grep -h
7
2,746
How to replace a character with a newline in Emacs: M-x replace-string RET ; RET C-q C-j.
4
2,756
Day of the year: date '+%j'
2
13
2,720
Don't copy-paste from a website to a terminal thejh.net/misc/website-termi…
1
20
2,949
The GNU version of date lets you do things like the following: date -d 'today + 90 days'
3
18
2,834
In bash, !?foo will repeat the most recent command that contained the string 'foo'.
1
1
18
2,970
ls -X will group files by extension.
4
25
3,604