HOWTO: Terminal’s tips in OSX
Another useful and quick post about tips from OSX Terminal that let you to save a lot of time. So just open a Terminal and try them.
open .opens the current folder.open file.pngopens the image file.png. You canopenwhatever you want.pbcopyandpbpastecopy/paste to/from the clipboardpython -m SimpleHTTPServer 8000starts a webserver (using python)say Hello theresays “hello there”, really! :)!!runs the last commandmdfindis Spotlight from command linectrl-aandctrl-ego to the beginning/end of the linecd, do you really need an explanation?/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background &your screen saver as you desktop wallpaper - uselessemacs -batch -l dunnetis a text-based game :)top -o vsizeortop -o cputell you who is eating your memory/CPU?SetFile file -a Vmakes files invisiblediskutilmanages disks and imageshdiutil burn /path/to/isoburns an ISO to a CD/DVD/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -sscans WIFI networksatl + mouse dragis the rectangular selectionafplay ~/path/to/file.mp3plays an mp3 filesudo /System/Library/CoreServices/Finder.app/Contents/MacOS/Finderopens Finder with root permissions (pay attention!!!)cat somefile.txt | sayliterally says the content of somefile.txthistory|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rgives you the numbered list of most recent commandssudo softwareupdate -i -alaunches the software updatectrl + Rstartes a reverse search of your commands
Do you have other useful tips? Post them in the comment! :)
Source and other tips, here.
Comments