Host Information
uname | Print basic system information. |
sw_vers | Print the Macintosh software version. |
hostname | Print the system’s hostname. |
scutil | Set or get host information. |
ifconfig | Set and display network interface information. |
ipconfig | Set and display network interface information for debugging. |
Every Macintosh (or host) has a name, a network IP address, and other properties. Here’s how to display this information.
Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.