
It also lists how many users are located within the system and the average loads on resources. This command provides information on how long the system has been online since the last reboot in days and hours. This command provides a simple output of the major and minor version of macOS installed locally. How to obtain the macOS version sw_vers -productVersion SEE: Editorial calendar: IT policies, checklists, toolkits, and research for download (TechRepublic Premium) 1. The best part: These Terminal commands are all very flexible and may be combined with other commands in more complex scripts to create actionable, universal tasks, built on the information output from the basic commands below.


I’ve even added some of the Terminal commands below to a script I’ve crafted that helps to further automate this process, whether being executed manually or over SSH. The fastest way I’ve found to accomplish this is by using the Terminal and some basic, but incredibly useful, commands to extract the needed information in no time flat. How many times has this happened to you? You’re tasked with working on group of devices that you have little to no prior knowledge of, or you simply need to pull some basic info from the machines quickly. ICloud Usage Policy (TechRepublic Premium) How to boost your iPhone’s battery chargeĬlean your Mac before you break down and buy a new one
Image: iStock/Yumi mini Must-read Apple coverage These basic Terminal commands are often overlooked, though are useful for Mac users trying to obtain information about a system they may not be familiar with quickly and efficiently. 7 handy Terminal commands for Mac users to know
