SYSTEM_PROFILER
Show a very long list of details about your machine and kernel (verbose output)
system_profiler |
SYSCTL
The entire list of system properties using -a for "all properties" (verbose output). Just looking through the output you'll learn something new about your system.
sysctl -a |
Last time the system was booted (1 line output)
sysctl kern.boottime |
Swap usage (1 line output)
sysctl vm.swapusage |
How many keys does sysctl have values for? 644.
$ sysctl -a | sed '/^$/d' | wc -l # not counting blank lines 644 |
What top level categories does sysctl have values for?
$ sysctl -a | sed '/^$/d' | sort | cut -d. -f1 | uniq appleprofile debug hw kern machdep net security user vfs vm |
Other commands
Operating system version (3 lines output)
$ sw_vers |
Total current uptime (1 line output)
uptime |
Sources: