bash
Revision as of 05:30, 10 January 2008 by Brandon CS Sanders (talk | contribs) (HowToUseBash moved to bash)
Bash shell tricks
Shortcuts
- ctrl-r (Reverse search in command history. Tab to complete command.)
- tab (Tries to complete what ever you have typed in.)
- !$ - last word of previous command. Handy for doing something with a file you just did something with
- !! - entire last command. Handy if you forget to sudo something, sudo !! will be faster then editing the old command
For Loops
for i in * ; do echo $i ; bzip2 $i ; done
