where to run sudo commands code example
Example 1: how to run sudo in windows
Simply specify the user and command to run as follows:
runas /user:Admin cmd
Example 2: run command with sudo
Switch to Root User
This command switches your command prompt to the BASH shell as a root user:
sudo bash