If you have an M1-based Macbook you can tell if a process running on the machine is Apple/M1 or Intel/Rosetta in Activity Monitor, but is there a way to get this information on the command line?
I'd like to be able to quickly show a count of how many Intel processes are currently running on my machine under Rosetta.
Best Answer
You can definitely rule out some things (go to the terminal). e.g.
USE the executable name and pass to
file
command.So if that gives you x86_64 it has to be running under Rosetta - it's got only x86_64 architecture (the pre-M1 one).
On a M1 machine some things ship with universal binaries - for instance do the same thing for Safari and I get something like this (sorry machine is air-gapped .. this is TCP-over-ME so may not be 100% correct :-)
.. and then proceeds to give output that is for each architecture ... According to Apple it will "prefer" arm64e.