<br>
There are two ways of becoming the root user on the macOS terminal.
<br>
## Option 1
Run the following commands on the Terminal.
```
macOS:/Users/eryu% whoami
analysisman
macOS:/Users/eryu% sudo -i
Password:
macOS:~ root# whoami
root
macOS:~ root# exit
logout
```
<br>
## Option 2
Run the following commands on the Terminal.
```
macOS:/Users/eryu% whoami
eryu
macOS:/Users/eryu% sudo su
Password:
%m:%d%% whoami
root
%m:%d%% exit
exit
```
<br>
## References
https://superuser.com/questions/592323/how-do-i-become-root-on-mac-os-x
<br>
## Links
[[_Index_2_IT]]
<br>