Unix tool tip (@UnixToolTip) header
Unix tool tip (@UnixToolTip) profile picture

Tips on Unix utilities and related topics from @JohnDCook.

Joined August 2011
Photo by Unix tool tip (@UnixToolTip)Photo by Unix tool tip (@UnixToolTip)Photo by Unix tool tip (@UnixToolTip)Photo by Unix tool tip (@UnixToolTip)Photo by Unix tool tip (@UnixToolTip)Photo by Unix tool tip (@UnixToolTip)Photo by Unix tool tip (@UnixToolTip)Photo by Unix tool tip (@UnixToolTip)Photo by Unix tool tip (@UnixToolTip)Photo by Unix tool tip (@UnixToolTip)
'The enjoyment of one's tools is an essential ingredient of successful work.' -- Donald E. Knuth
12
330
14
623
Filter out lines containing 'spam': sed '/spam/d' somefile
2
12
2,340
'The enjoyment of one's tools is an essential ingredient of successful work.' -- Donald E. Knuth
1
12
65
2,854
Make directories more than one level deep in one command: mkdir -p foo/bar
1
2
16
2,756
In bash, !^ expands to 2nd word of previous command.
1
1
28
2,686
'Don't ever, ever plan a backup strategy. Plan a restore strategy.' -- Paul Randal
5
5
55
2,812
Moving a file to , instead of . can cause a great deal of confusion. Ask me how I know. :)
1
20
2,687
Combine multiple consecutive blank lines into one: cat -s
8
2,643
If you don’t know what version of Unix a shell is running, try typing uname.
1
13
2,737
diff3 compares three files line by line.
1
27
2,756
Error handling in bash scripts jtrocinski.com/posts/Bash-Er…
1
2
35
3,172
chmod +x marks a file as executable
4
2
1
33
3,063