How does ubuntu switch to root user status? The previous small series shared Ubuntu How to open the root user, the following small part to share how to cut to the root user
Methods/Steps Open the Terminal tool in the following way, or use the shortcut key of the Terminal tool Ctrl + ALT +t to open the terminal
When the terminal tool opens, as shown, our operation is performed in this window.
To switch the root user one way:
Execute command sudo su
Executing the above command will require us to enter our current password.
After you enter your password and switch to the root user, we can see that the current user is already root.
Ways to exit the root user
After switching to the root user, we simply exit the root user account by executing the exit command.
The second way to switch to the root user account
Executing the sudo-i command can also switch the current user to the root user mode with a normal user
After the execution of the command, generally also require the input of our password, small part here because it is just switch to the root user shortly, so the system does not require the password, generally in 10 minutes we switch the root user back and forth when the system does not prompt for the password, then will ask us to enter the password again.
Switch to the root account method in Ubuntu