Command-line Fu
commandlinefu.com
commandlinefu.com
It is a little-pie-in-the-sky, I admit. The top command when I visited was `sudo`. What argument `sudo` takes depends upon the shell the user is using to execute `sudo`. Perhaps this could be a preference set somewhere, along with the OS being used. And maybe have a sister site where people contribute shell command grammars in some standardized syntax. I wonder how many people would be willing to provide those, though. Hmm.
This wasn't mentioned in the prior submission of this site, and it didn't occur to me until seeing it again. Just thinking out loud.
man -t UNIX_COMMAND | open -f -a previewSnipt seems to be a more general code-snippet site, though whereas commandline-fu focuses solely on the command line.
While we're off on a mild tangent, check out dotfiles.org for collections of some cool unix rc files. It complements commandline-fu nicely.
Great tips though, although not all of them work on OSX, and it does't advertise this. Love the !! command (runs previous command as sudo), had completely forgotten about it.
(I kid! I kid! I'm taking it out of context! Don't flame me, bro!)
Cool site, picked up two gems after only about 20 seconds on the main page.
It focuses somewhat more on zsh (my shell of choice) than on bash, but one of the authors contributes heavily to zsh. Even so, bash users will see lots of great hints and tips. The shells' own man pages are more reference-style (see zshall), which I find heavy going when it comes to learning how to use the environment more effectively. The book explains use cases and provides examples in a way that makes the reference material more understandable.
http://oreilly.com/catalog/9780596009656/
I keep it on hand as a reference for shell scripting, since it's both thorough and fairly portable.
I have a 'zap colors' bookmarklet that fixes it for me, but you may want to consider whether the color choice (albeit cute) is most effective.
cat ~/.ssh/id_rsa.pub | ssh 'ip/port/options' "cat >> 'home directory'/.ssh/authorized_keys"