How do I switch users in Linux command line?

How do I switch users in Linux command line?
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