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.png
opens the image file.png. You canopen
whatever you want.pbcopy
andpbpaste
copy/paste to/from the clipboardpython -m SimpleHTTPServer 8000
starts a webserver (using python)say Hello there
says “hello there”, really! :)!!
runs the last commandmdfind
is Spotlight from command linectrl-a
andctrl-e
go 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 dunnet
is a text-based game :)top -o vsize
ortop -o cpu
tell you who is eating your memory/CPU?SetFile file -a V
makes files invisiblediskutil
manages disks and imageshdiutil burn /path/to/iso
burns an ISO to a CD/DVD/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -s
scans WIFI networksatl + mouse drag
is the rectangular selectionafplay ~/path/to/file.mp3
plays an mp3 filesudo /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
opens Finder with root permissions (pay attention!!!)cat somefile.txt | say
literally says the content of somefile.txthistory|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -r
gives you the numbered list of most recent commandssudo softwareupdate -i -a
launches the software updatectrl + R
startes a reverse search of your commands
Do you have other useful tips? Post them in the comment! :)
Source and other tips, here.
Comments