DoesItOmarchy
Search Ctrl K

Identify my Mac

Not sure which Intel Mac you have, or which of its configurations? Run one command, paste what it prints, and we'll identify it.

1. Run this command

Linux, including Omarchy, in a terminal (uses wl-copy):

sh -c 'cat /sys/class/dmi/id/product_name /sys/class/dmi/id/board_name; grep -m1 "model name" /proc/cpuinfo; for d in /sys/bus/pci/devices/*; do echo "pci $(cat $d/vendor):$(cat $d/device)"; done' | tee /dev/tty | wl-copy
Learn what this command does
PartWhat it doesLearn more
sh -c '…' only when copying Runs everything inside the quotes as one script, so the same line works in any shell: bash, zsh or fish. sh(1p) (another site)
cat /sys/class/dmi/id/product_name /sys/class/dmi/id/board_name Prints two files in which your Mac's firmware reports its model identifier (e.g. MacBookPro11,3) and its board ID (Mac-…). /sys is where Linux shows hardware details as files. cat(1) (another site) sysfs(5) (another site)
; Runs the next command once this one has finished.
grep -m1 "model name" /proc/cpuinfo Prints the first line of /proc/cpuinfo that contains “model name”: your CPU's name. -m1 stops after one match, as every core repeats it. grep(1) (another site) proc_cpuinfo(5) (another site)
for d in /sys/bus/pci/devices/*; do echo "pci $(cat $d/vendor):$(cat $d/device)"; done Visits each PCI device the kernel found (graphics, Wi-Fi, controllers) and prints its vendor and device IDs, e.g. pci 0x8086:0x0a26. $(…) inserts what the command inside prints. sh(1p) (another site) echo(1) (another site)
| tee /dev/tty only when copying Shows the output in your terminal as well, and passes it on. /dev/tty is your terminal. tee(1) (another site)
| wl-copy only when copying Puts the output on the clipboard, ready to paste below. It's part of wl-clipboard, which Omarchy includes. wl-clipboard (another site)

None of these commands change anything; they only read.

macOS, in Terminal (uses pbcopy):

sh -c 'sysctl -n hw.model machdep.cpu.brand_string; ioreg -p IODeviceTree -r -n / -d 1 | grep board-id; system_profiler SPDisplaysDataType' | tee /dev/tty | pbcopy
Learn what this command does
PartWhat it doesLearn more
sh -c '…' only when copying Runs everything inside the quotes as one script, so the same line works in any shell: bash, zsh or fish. sh(1p) (another site)
sysctl -n hw.model machdep.cpu.brand_string Reads two values macOS keeps about your Mac: its model identifier and its CPU's name. -n prints only the values. sysctl (another site)
; Runs the next command once this one has finished.
ioreg -p IODeviceTree -r -n / -d 1 Shows the top of the device tree macOS received from the firmware. -p IODeviceTree picks that tree, -n / its root, -r only that part, and -d 1 one level deep. ioreg(8) (another site)
| grep board-id Keeps only the line with your Mac's board ID. grep (another site)
system_profiler SPDisplaysDataType The Graphics/Displays section of System Information: each GPU's name, vendor and device ID. system_profiler (another site)
| tee /dev/tty only when copying Shows the output in your terminal as well, and passes it on. /dev/tty is your terminal. tee (another site)
| pbcopy only when copying Puts the output on the clipboard, ready to paste below. pbcopy (another site)

None of these commands change anything; they only read.

2. Paste what it printed (it's already on your clipboard)

Or press Ctrl+V anywhere on this page.

Your paste is read in your browser. Only the model identifier, board ID, CPU name and device IDs are sent, and nothing is stored unless you opt in to share them to help improve this site. Without JavaScript the server reads the paste and discards it at once. See privacy.

    ↑↓ moveEnter openTab completeEsc close