ubuntu 현재 user 변경하기


1
2
3
4
5
6
$ whoami 
>>> user1 // 현재 user를 보여준다
$ su - user2 // user2로 변경하기
Password: [user password 입력]
$ whoami
>>> user2