The most powerful user under Linux is root. This user can do whatever he wants. If we can directly use the administrator authority under this user without using the sudo keyword, how can we switch to root?
To switch to the root account for the first time, you need to set the password of the root account, as follows:
sudo passwd root
In this way, you can set the password of the root user, as follows:
Then we can use the command:
Switch to the root user. When switching, you need to input the password of the root user. We can do experiments. To create a geeksongs2 user in the root account, we don’t need to use the sudo command at all. Finally, we can use the LS / home command to see that the geeksongs2 user has been successfully created.
Because the permission of root super user is too large, we should use it carefully. After using it, we must input the command:
To quit this super user