If you want to update your Mac remotely via SSH, or you don’t want to go through the steps to open System Preferences and perform the updates, your Mac can also be updated directly through the Terminal. SEE: Windows, Linux, and Mac commands everyone needs to know (free PDF) (TechRepublic) How to update your Mac with the softwareupdate Terminal command You’ll type the commands into the Terminal and then press return to execute them. Find this application by opening the Finder and navigating to Applications | Utilities. To use these command-line tips, I utilize the Terminal application that ships with every copy of macOS–there’s nothing extra to install or download. Learn basic command-line tips that every Mac user and large businesses relying on and managing Macs should know. This makes it easier for IT teams to manage devices running macOS because personnel can log in via SSH and run commands remotely to do things like install software or update Macs.
Under the hood, macOS X has a Unix shell that lets you runs powerful command-line utilities. These are the basic macOS Terminal commands to know for updating a Mac, forcing an unresponsive Mac to shut down, finding the differences between files easily and much more. MacOS Terminal commands every Mac user should know