How to check if a process is running under Rosetta with terminal

13.8k Views Asked by At

I know that one can use Activity Monitor to check if a process is running via Rosetta on Apple Silicon. I wonder if there is a way to do the same with the terminal?

Edit:

The process is some other application, so if there is a way to check if this process is running in Rosetta a possible command could maybe have the syntax:

$ is_running_under_rosetta <pid>

which would output

yes or no.

2

There are 2 best solutions below

0
On

By using following command you can check if the process is running under Rosetta(1) or not(0, natively).

sysctl -n sysctl.proc_translated
0
On

Confirm that you are using the Native Terminal by typing arch, which should return arm64: Terminal app screenshot running arch command and returning arm64