To switch to the root user on Ubuntu, you can use the following command:   sudo su
This will switch to the root user’s shell and allow you to run commands as the root user. To exit the root shell, you can type the “exit” command.