Site TIPS PAGE🔎   UP ONE LEVEL
 OJB's Site. v2.4.L: tip74 tips mac owen2 
Tip

Discuss   Up to OJB's Mac Tips List

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'





My latest blog post: Think for Yourself: In the end, everything is just an opinion. Be skeptical, and think for yourself! (posted 2026-04-25).

My latest podcast: OJB's Podcast 2026-04-14 How Far is that Star?

If you're not sure what to view from my site, here are some suggestions: My Latest Airshow Report, My Favourite Wines and Beers, An Interesting Astronomical Observation, See Some Photos, Read Some Mac Tips.


Site News (Mobile): OJB's web site, v 2.4 which has major changes, and possibly errors! Please report anything to ojb@mac.com.