Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There are a lot of common commands we use on the command line whose names or standard arguments can be difficult to remember. What are some good mnemonics that can be used to remedy this problem?

Example: a good mnemonic I've found for decompressing tarballs (tar xzf) is extract ze files!

share|improve this question

migrated from stackoverflow.com May 30 '11 at 0:19

This question came from our site for professional and enthusiast programmers.

1  
tar xzf would probably be better remembered as extract zlib from file, that way when you get a .tar that isn't compressed, it is easier to remember to leave off the z, or if you're working with tapes you'll know to leave off the f, since it isn't coming from a file. :) –  sarnold May 30 '11 at 0:16
    
I voted to actual close rather than migrate and if I could vote to close here I would do so. This particular question indicates pretty bad understanding of the fundamentals. –  Joshua May 30 '11 at 0:20
3  
@Joshua: How so? "Understanding of the fundamentals" imbues one with superhuman memory now? –  Lightness Races in Orbit May 30 '11 at 0:22
    
@sarnold: You are correct, but I prefer to imagine my mnemonics with a funny german accent. –  Damien Wilson May 30 '11 at 0:29
    
Agreed. Mnemonics are a great way to remember things, even if you're a pro. A lot of commands have weird names or weird arguments, it can be much easier to remember a mnemonic device than the actual meaning. –  jcrawfordor May 30 '11 at 0:29

2 Answers 2

Most utilities without a ton of switches are developed with memorization in mind to a certain extent. Of course, when there are utilities with 100+ switches developers are forced to improvise with long-named switches (e.g --version ) which make this kind of thing even easier.

Some mnemonics that are handy:

tar xzf file... -- extract (g)zipped file.

ls -laR -- list all recursively

rm -rf -- remove recursively, force (cp and mv share many switches with rm)

mount -uw /mountpoint -- upgrade to writeable

sort -nr -- sort numbers in reverse

share|improve this answer

Alt-SysRq-R+E+I+S+U+B -- Reboot Even If System Utterly Broken

This is the only one you need in a pinch. <plug>For everything else, there's StackExchange.</plug>

share|improve this answer
    
I can appreciate this one; god knows I break plenty of systems. –  Damien Wilson May 31 '11 at 5:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.