How to log in as root?

QuestionsQuestions8 SkillsProYour First Linux LabAug, 12 2025
0209

To log in as the root user, you can use the following command:

su - root

You will then be prompted to enter the root password. If the password has not been set, you can log in directly without entering a password. If you are already logged in as a user with sudo privileges, you can also use:

sudo su -

This will switch you to the root user.

0 Comments

no data
Be the first to share your comment!