On Windows the systeminfo command is a quick way to get system information from the shell.

Is there any command like that on macOS?

  • 5
    What exact info do you need. Try From Apple menu About this Mac and hit the System Report Button
    – mmmmmm
    Apr 24 at 8:37

2 Answers 2


Both system_profiler and sysctl provide copious amounts of system information, which you can narrow down using grep, depending on what it is you're after.


The networksetup command can be used to get a lot of system information related to the network and network hardware. For non-network system information, use system_profiler or sysctl -a -h (other options for the sysctl command provide the system information in a different format).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .