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 all hidden files in a directory excluding current dir . and parent dir .. with .??* that means files with at least two characters.
Perform a dns zone transfer (if is allowed on target dns server) and print result.
Display which user run process from given port name
On my music directory, I create variable that contains all mp3s files, then I play them with mpg123. -C options enable terminal control key, s for stop, p for pause, f for forward to next song.
Substitute spaces in filename with underscore, it work on the first space encountered.