Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 875
tuple_cat Avatar asked Jan 31 '21 21:01

tuple_cat


People also ask

How do I check Rosetta terminal?

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`.

How do I know if Rosetta is on my Mac?

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.

What is Rosetta on Mac terminal?

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.

How do I remove Rosetta from my Mac?

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.


Video Answer


1 Answers

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

like image 108
Sivakumar Ajanthan Avatar answered Nov 15 '22 02:11

Sivakumar Ajanthan