Running programs as root in terminal

From MEPIS Documentation Wiki

Jump to: navigation, search
  • To switch to root, type "su" (without the quotes) and enter the root password when prompted.
  • To run only one program as root use "su -c programname" and enter the root password. If you need to add options to the command, encapsulate that into quotes:
su -c "programname --option1 --option2"
Personal tools
In other languages