Determine the architecture of a Mac from the command line or script?
Fresh3 days ago
Mar 15, 2026111553 viewsConfidence Score1%
1%
Problem
I'm writing a shell script, and I need to know the architecture, i.e. PPC or Intel. Back in the day, there was a program that told you, but my Mac doesn't seem to have it. Is there an easy way I can do this? for something in a log file? Call some other program that spits that out as a side effect? It would be nice to know what OS version I'm running too, but that may not be necessary.
Error Output
/bin/arch
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Determine the architecture of a Mac from the command line or script?
Low Risk
There are many ways, but try .
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix