Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How do I run a root command on Linux?

Answer:

If sudo is installed, you can use

sudo command

or you would need to change to root by using

su -

After login as root, you can execute the command.

  1. How to simulate login as root using sudo command
  2. Why can’t I telnet into my Linux box as root?
  3. Reset MySQL root password
  4. Add a user that can gain root privileges in Ubuntu
  5. How to change the login shell?

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>