Category: macOS

macOS: Useful Commands

The intent of this page is a quick reference of some interesting and useful commands.  The following commands had been tested against macOS versions 11.5.2+ . Serial Number ioreg -rd1 -c IOPlatformExpertDevice | awk -F'"' '/IOPlatformSerialNumber/{print $4}' Model Number sysctl -n hw.model | cut -d "," -f 1 | tr -d '[0-9]_' Current logged On User ls -l /dev/console |...Read More »