Check if script is run as root user Scripting #Check if script is run as root user whoami will give the name of the current user