How do you change user to root in Linux?

How do you change user to root in Linux?
Answer
To get root access, you can use one of a variety of methods:
  1. Run sudo <command> and type in your login password, if prompted, to run only that instance of the command as root.
  2. Run sudo -i .
  3. Use the su (substitute user) command to get a root shell.
  4. Run sudo -s .
 

Tìm kiếm

Back
Top