Difference between revisions of "bash"
Jason Parmer (talk | contribs) |
m (HowToUseBash moved to bash) |
(No difference) |
Revision as of 05:30, 10 January 2008
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