bash

Revision as of 19:40, 27 September 2007 by Jason Parmer (talk | contribs)



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



Retrieved from "http://aboutus.com/index.php?title=bash&oldid=11118962"