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.
