10 terminal tricks for mac os x

12

Click here to load reader

Upload: joel-bez

Post on 17-May-2015

4.166 views

Category:

Technology


6 download

TRANSCRIPT

Page 1: 10 Terminal Tricks for Mac OS x

10 Terminal Tricksfor Mac OS x

by lejoe from L//P

Page 2: 10 Terminal Tricks for Mac OS x

open .obvious....

Page 3: 10 Terminal Tricks for Mac OS x

Ctrl+Rinteractively search through your shell history

Page 4: 10 Terminal Tricks for Mac OS x

grep 'lala' file.txt | pbcopypastes to clipboard

Page 5: 10 Terminal Tricks for Mac OS x

pbpaste > file.txtuse content of clipboard

Page 6: 10 Terminal Tricks for Mac OS x

mdfind file.txtspotlight from the command line

Page 7: 10 Terminal Tricks for Mac OS x

!!Re-runs the last command again

( usefull for sudo !! )

Page 8: 10 Terminal Tricks for Mac OS x

^X^ECtrl-X Ctrl-E

(edit current command line in editor)

Page 9: 10 Terminal Tricks for Mac OS x

say “local.ch rocks”fancy text-to-speech

Page 10: 10 Terminal Tricks for Mac OS x

hold option and click a position in the current line

to move your cursor to that position

Page 11: 10 Terminal Tricks for Mac OS x

pdfman() { man $1 -t | open -f -a Preview; };

open man pages as PDF

Page 12: 10 Terminal Tricks for Mac OS x

source: http://superuser.com/questions/52483