run sudo command in bash 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