How to Switch Terminal as Administrator on Mac | SJB -->

This website uses cookies to ensure you get the best experience. More info...

Pages

How to Switch Terminal as Administrator on Mac

In many cases, we need to run Terminal as an administrator. To switch the user to root to be able to execute with high privileges as an admin, we can use following command instead of using sudo each time before each commands, and then provide the password on prompting. Once we do that, we will remain as an administrator.

$ sudo -i
The user will get admin privilege and remain root until the terminal is closed. If we don't want to close the terminal, we can execute exit command to change back to the normal user state.

No comments:

Post a Comment