OSX Command Line Goodies

You can take a screenshot by command:

screencapture -C ~/screen.png

This will save a screenshot into the user’s home folder.

You can get system information:

/usr/sbin/system_profiler SPHardwareDataType

Which would show something like this:
Hardware:

Hardware Overview:

Model Name: iMac
Model Identifier: iMac8,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.66 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 6 MB
Memory: 4 GB
Bus Speed: 1.07 GHz
Boot ROM Version: IM81.00C1.B00
SMC Version (system): 1.29f1
Serial Number (system): VM906KT5ZE3
Hardware UUID: FB5DEAE0-DAB6-56DD-A62B-0F38C384654A

Speaking- You can make the computer speak by commandline:

say -v Albert "Hello world"

Albert can be replaced with any of the following:

Agnes,Albert,BadNews,Bahh,Bells,Boing,Bruce,Bubbles,Cellos,Deranged,Fred,GoodNews,Hysterical,Junior,Kathy,Organ,Princess,Ralph,Trinoids,Vicki,Victoria,Whisper,Zarvox

Comments are closed.