SU (switch user) knows the command to switch users.
Command format
Su [-l] User name-----> This is the option to switch the specified user completely
SU User name----> This is a half switch
EG:SU Root This is the switch to the root user, this execution must be required to enter the root user's password
After the session, you can use the Exit command to return the original user's shell, which is half-switched
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/8F/4D/wKiom1jaSm2SQKy3AAANVMVSh7g659.png-wh_500x0-wm_ 3-wmp_4-s_3876297564.png "title=" Qq20170328193520.png "alt=" Wkiom1jasm2sqky3aaanvmvsh7g659.png-wh_50 "/>
This is the other option for the SU command
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/8F/4B/wKioL1jaSvLy4kLVAABKv-sflIo842.png-wh_500x0-wm_ 3-wmp_4-s_2749141295.png "title=" Qq20170328193734.png "alt=" Wkiol1jasvly4klvaabkv-sflio842.png-wh_50 "/>
This article is from the "phize" blog, make sure to keep this source http://12756301.blog.51cto.com/12746301/1911212
The SU command for Linux