how to run command as root in ubuntu code example Example: how to open terminal as administrator in ubuntu # in terminal type sudo su # now enter your login password