I have a Mac that someone asks me to help them sell. They already wiped the hard drive and put a fresh installation of macOS on it. Upon boot, it's at the "Welcome" setup with no users intialized yet.
Is there an easy way to see the System Information and version of macOS currently installed on this machine without creating a new user? I'd like to leave this machine in a clean state without having to re-wipe the hard drive with a new installation.
Best Answer
The following assumes that the Recovery HD has the same version of macOS installed on the Macintosh HD for the accuracy of OS version information.
If you boot the Mac to Recovery Mode, you can access System Information from Terminal using the following command, e.g.:
You might what to minimize the output and use and of the following options:
To get just a Hardware: report, use:
Example:
On my system the outout of the above command was:
Notes:
To boot to the Recovery HD, press CommandR when booting the Mac. See also About macOS Recovery
Also, have a look at the manual page for
system_profiler
If you want to just get information for some of the
-listDataTypes
listed, you can add each on the command line, e.g.:The
system_profiler
command can be run directly from single-user mode, by pressing CommandS when booting the Mac, without having to provide the fully qualified pathname, however depending on how much information you want fromsystem_profiler
, you may need to pipe the output tomore
toless
, etc., as scrolling in single-user mode is not as easy as from Terminal when booted to the Recovery HD.That said, if all you want is the basic output shown under Hardware: and Software: from using the
system_profiler
command, then use the following command in single-user mode:Note that the software info from single-user mode is that which is install on the Macintosh HD, unlike from the Recovery HD it's that of the OS X Base System and while it should be the same, it may not. The hardware info is accurate in either case.