run sudo a script on terminal open 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