Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux change user in terminal

$ whoami
user1
$ su - user2
Password:
$ whoami
user2
$ exit
logout
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #linux #change #user #terminal
ADD COMMENT
Topic
Name
4+3 =