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
.
Install your tools with the Rosetta Terminal First, open up "Rosetta-Terminal" using Spotlight (just hit Cmd+Space). Confirm that you are using a Rosetta Terminal by entering the `arch` command, which should return `i386`.
Simply double-click an app built for an Intel-based Mac and then click Install at the dialog prompt that appears on the screen. Enter your username and password to allow the Rosetta 2 installation to proceed, and once installation is complete, Rosetta will be available for any older apps that need it.
Rosetta allows us to use apps built for Mac with intel chip. Several CLI tools do not have native versions built for the new M1 architecture. Enabling them on your native M1 Mac terminal can be frustrating. Follow these steps to enable Rosetta: Select the app(Terminal) in the Finder.
Run csrutil disable and confirm (temporary disable SIP) Delete the files listed at step 1 (in my case it was enough to delete /Library/Apple/usr/share/rosetta and /Library/Apple/usr/libexec with all their contents) Reboot back to recovery terminal. Run csrutil enable and confirm.
Confirm that you are using the Native Terminal by typing arch
, which should return arm64: Terminal app screenshot running arch
command and returning arm64
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With