10 terminal tricks for mac os x
TRANSCRIPT
10 Terminal Tricksfor Mac OS x
by lejoe from L//P
open .obvious....
Ctrl+Rinteractively search through your shell history
grep 'lala' file.txt | pbcopypastes to clipboard
pbpaste > file.txtuse content of clipboard
mdfind file.txtspotlight from the command line
!!Re-runs the last command again
( usefull for sudo !! )
^X^ECtrl-X Ctrl-E
(edit current command line in editor)
say “local.ch rocks”fancy text-to-speech
hold option and click a position in the current line
to move your cursor to that position
pdfman() { man $1 -t | open -f -a Preview; };
open man pages as PDF
source: http://superuser.com/questions/52483