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:
Remove your BASH history and then link it to /dev/null
This will mv all your mp3 files in the current directory to $ARTIST/$ALBUM/$NAME.mp3
Make sure not to use sudo - as some weird things can happen if the mp3 file doesn't have id3 tags.
When you don't have c_rehash handy. Really simple - if you have a .pem file that doesn't really contain a x509 cert (let's say, newreq.pem), it will create a link, simply called '.0', pointing to that file.
Used for moving stuff around on a fileserver
if you wanted to create a new folder called "red" that was a symbolic link from /home/music/ to /home/hobbies/art then you would type:
ln -s /home/hobbies/art /home/music/red
Symlinks all files in the base directory to the target directory then lists all of the created symlinks.
I find this handy for linking all the bin files in a package to /usr/bin or all the man files to /usr/share/man. You can replace * with */* to operate on all the files in subdirectories.