linux see if user is root code example
Example 1: how to become root user in ubuntu
sudo passwd root
Example 2: how to check super user in linux
grep -Po '^sudo.+:\K.*$' /etc/group
sudo passwd root
grep -Po '^sudo.+:\K.*$' /etc/group