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
Preserve bash history in multiple terminal windows unix.stackexchange.com/quest…
22
2,248
mv -i moves files, asking for confirmation before overwriting an existing file.
11
2,610
cp -u will only copy files that don't exist, or are newer than their existing counterparts, in the destination directory.
1
22
2,775
Filter out lines containing 'spam': sed '/spam/d' somefile
2
11
2,687
'The enjoyment of one's tools is an essential ingredient of successful work.' -- Donald E. Knuth
1
12
65
2,884
Make directories more than one level deep in one command: mkdir -p foo/bar
1
2
17
2,774
In bash, !^ expands to 2nd word of previous command.
1
1
29
2,707
'Don't ever, ever plan a backup strategy. Plan a restore strategy.' -- Paul Randal
5
5
56
2,829
Moving a file to , instead of . can cause a great deal of confusion. Ask me how I know. :)
1
20
2,699
Combine multiple consecutive blank lines into one: cat -s
8
2,654
If you don’t know what version of Unix a shell is running, try typing uname.
1
13
2,743