Sub topic 15
Checking your setup from Terminal
This chapter assumes you have finished Setup Assistant, signed in with your Apple Account, and know how to open Terminal (in Applications > Utilities). System Settings shows the same information. Terminal gives you text you can copy into a note or send to support.
All five commands below only read information. None of them changes a setting.
Confirm the macOS version
Run sw_vers to see which release the Mac is running. Run it again after an update to confirm the change.
sw_versThe output lists ProductName, ProductVersion and BuildVersion. The build is a short code such as 24A335. Support staff often ask for it because one version number can cover several builds.
Check for available updates
softwareupdate --listIf the Mac is current, the command reports that no new software is available. Otherwise it lists each update with a label, a title and a size. The command needs a network connection and can take a few seconds. Install updates from System Settings > General > Software Update, as covered in the updates chapter.
Confirm FileVault is on
fdesetup statusWhen disk encryption is enabled, the command prints FileVault is On. If it prints FileVault is Off., open System Settings > Privacy & Security > FileVault and turn it on. If encryption is still running, the output says that encryption is in progress.
Check your Time Machine destination
tmutil destinationinfoWith a backup disk configured, the output shows its name, kind and ID. With none, you see a message that no destinations are configured. Connect a drive and add it in System Settings > General > Time Machine.
Match the hardware to your Apple Account
system_profiler SPHardwareDataTypeThe output includes the model name, the chip and the serial number. Open System Settings, click your name, and scroll to the device list. The Mac listed there should show the same model and serial number. If it is missing, sign-in may not have finished, or you may have signed in with a different Apple Account.
Reading the results together
| Command | Healthy result | If not |
|---|---|---|
| `sw_vers` | Expected macOS version | Update the Mac |
| `softwareupdate --list` | No new software available | Install the listed updates |
| `fdesetup status` | `FileVault is On.` | Turn on FileVault |
| `tmutil destinationinfo` | A named backup destination | Add a backup disk |
| `system_profiler SPHardwareDataType` | Serial matches the device list | Check which account you signed in with |
Common errors
command not found: Check the spelling. These tools ship with macOS, so a missing one usually means a typo.fdesetupoutput looks unfamiliar: Run the command exactly as shown, with no extra options.softwareupdatehangs or fails: Check your Wi-Fi or Ethernet connection and try again.- Hardware output lacks what you expect: Run the command in a normal Terminal window, not inside a script that filters the output.
Exercise
You ran fdesetup status and it printed "FileVault is Off." Which setting do you change, and which command confirms the fix?
Show answer
Open System Settings > Privacy & Security > FileVault and turn it on. Then run fdesetup status again. It should print "FileVault is On." (or report that encryption is in progress).
Exercise
Why compare the output of system_profiler SPHardwareDataType with your Apple Account's device list?
Show answer
The model and serial number should match the entry in the device list. A mismatch or missing entry means sign-in did not finish, or you signed in with a different Apple Account.