how to execute sudo command in shell script code example
Example: run command with sudo
Switch to Root User
This command switches your command prompt to the BASH shell as a root user:
sudo bash
Switch to Root User
This command switches your command prompt to the BASH shell as a root user:
sudo bash