su只是切换用户。 su - 切换用户并切换shell环境。 su another pwd后为/home/current su - another pwd后为/home/another 转载于:https://www.cnblogs.com/sssblog/p/10144042.html