commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
* grep -i leaves only mp3 files (case insentitive)
* sort -R randomizes list (may use GNU 'shuf' instead).
* the sed command will add double quotes around each filename (needed if odd characters are present)
Many non-IBM keyboards have the control key where the caps lock is in most keyboards. You'll appreciate this if you are a vi/vim user.
((60 * 4)) will be turned into 240 by bash before being input to the shutdown command, replace the 4 with whatever number of hours you want, let bash do the math.
Backspace and Return/Enter equivalents
i686 = 32 bits
x86_64 = 64 bits
the command "getconf LONG_BIT" will work just as well.
change the last two-character abbreviation to any layout abbreviation you want. This command will only run in the current session, add to your ~/.bashrc to make this permanent.