How do I switch users from one user to another in Linux?

Tâm Tây

New member
How do I switch users from one user to another in Linux?
Answer
  1. In Linux, the su command (switch user) is used to run a command as a different user. …
  2. To display a list of commands, enter the following: su –h.
  3. To switch the logged-in user in this terminal window, enter the following: su –l [other_user]
 

Tìm kiếm

Back
Top