How Do I Run a Program as Administrator in Linux?
Contents

How do you run a program as administrator in Linux?

4 Answers. The main two commandline possibilities are: Use su and enter the root password when prompted. Put sudo in front of the command, and enter your password when prompted.

How do I run a program as administrator in Ubuntu?

To run a command which requires root privileges in a terminal, simply prepend sudo in front of it. To get an interactive root shell, use sudo -i.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest