How Do You Switch Users in Linux?
Contents How Do I Switch Users in Linux? in Linux, the Su Command (Switch User) Is Used to Run a Command as a Different User. … to Display a List of Commands...
Contents
How do I switch users in Linux?
- In Linux, the su command (switch user) is used to run a command as a different user. …
- To display a list of commands, enter the following: su –h.
- To switch the logged-in user in this terminal window, enter the following: su –l [other_user]
Must Read
How do I switch users in terminal?
What to Know
- To switch to the root user on Ubuntu-based distributions, enter sudo su in the command terminal.
- If you set a root password when you installed the distribution, enter su.
- To switch to another user and adopt their environment, enter su – followed by the name of the user (for example, su – ted).
25 дек. 2020 г.