Note: You are currently viewing my old web site. There is a new version with most of this content at OJB.NZ.
The new site is being updated, uses modern techniques, has higher quality media, and has a mobile-friendly version.
This old site will stay on-line for a while, but maybe not indefinitely. Please update your bookmarks. Thanks.


[Index] [Menu] [Up] Title[Header]
Tips

(Up to OJB's Mac Tips List Page)


Show Specs from Command Line

It can be useful to retrieve information about a Mac from the command line.
For example, if you have booted into recovery mode or to an installer, or you have done a remote SSH session to another computer.

This command shows piles of stuff, but is slow: system_profiler

Shows lots of system paramaters, fast: sysctl -a

Show running OS version: sw_vers

Show OS version on disk: cat /Volumes/Macintosh\ HD/System/Library/CoreServices/SystemVersion.plist.
Note: Assumes disk is called "Macintosh HD".

Show free space on volumes: df -H

Show model number only: system_profiler SPHardwareDataType | grep 'Model Identifier'


[Up]

[Contact][Server Blog][AntiMS Apple][Served on Mac]