Skip to content

Instantly share code, notes, and snippets.

@aduzsardi
Created August 4, 2017 06:42
Show Gist options
  • Save aduzsardi/c12d96c746572834342075664b3ebe37 to your computer and use it in GitHub Desktop.
Save aduzsardi/c12d96c746572834342075664b3ebe37 to your computer and use it in GitHub Desktop.
Get Mac's system information from the command line
# get informations categories
system_profiler -listdatatypes
# get information about harddrives
system_profiler SPStorageDataType
# Export to XML
system_profiler -xml SPEthernetDataType SPFirewallDataType > ~/Documents/reports/system_profile-EthernetFirewall.xml
# get OSX version
sw_vers
# kernel and build version
uname -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment