🖥️ioreg

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the ioreg command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#   ██╗ ██████╗ ██████╗ ███████╗ ██████╗
#   ██║██╔═══██╗██╔══██╗██╔════╝██╔════╝
#   ██║██║   ██║██████╔╝█████╗  ██║  ███╗
#   ██║██║   ██║██╔══██╗██╔══╝  ██║   ██║
#   ██║╚██████╔╝██║  ██║███████╗╚██████╔╝
#   ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝ ╚═════╝

# show I/O Kit registry (Mac OS X)

# find out the arch of the efi firmware in a Mac
ioreg -l -p IODeviceTree | grep firmware-abi

# Get Hardware UUID in Mac OS X
ioreg -d2 -c IOPlatformExpertDevice | awk -F\" '/IOPlatformUUID/{print $(NF-1)}'

# Get Hardware UUID in Mac OS X - Formats the output from `ioreg` into XML, then parses the XML with `xmllint`'s xpath feature. Show Sample Output
ioreg -ad2 -c IOPlatformExpertDevice | xmllint --xpath '//key[.="IOPlatformUUID"]/following-sibling::*[1]/text()' -

#==============================##==============================#
# CMD IOREG 						       #
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░