whats the password for root code example
Example 1: default root password ubuntu 18.04
$ sudo passwd
Example 2: how to get root password
How to change root password in Ubuntu
The procedure to change the root user password on Ubuntu Linux:
Type the following command to become root user and issue passwd:
sudo -i
passwd
OR set a password for root user in a single go:
sudo passwd root
Test it your root password by typing the following command:
su -