After 15 years of programming, you’d think I would have internalized this by now: CTRL-W is the shortcut to delete the word before the cursor on the command line. Up to now, I’ve pretty much limited myself to using CTRL-A (“jump to beginning of line”) and CTRL-E (“jump to end of line”), but I’m trying to increase my shell-fu since I’m heavy into Linux app development again. CTRL-K (“kill to end of line”) is another one I’d forgotten. And CTRL-L clears the screen! Here’s a more complete list. (Most of these work fine in zsh, too, which is the shell I actually use.)
Speaking of zsh, here’s a cheat sheet for that Shell of Champions. Most helpful tip I picked up from it? !:n expands to the nth parameter of the previous command. ($! is great in the common case that you want the last parameter, but sometimes you want something in the middle.)


