hansom6
请问su 与su -命令有什么区别?
请问su 与su -命令有什么区别?
7717060
:mrgreen: :mrgreen: [quote]原帖由 [i]hxxujf[/i] 于 2008-6-8 17:53 发表 [url=http://linux.chinaunix.net/bbs/redirect.php?goto=findpost&pid=6608461&ptid=1009749][img]http://linux.chinaunix.net/bbs/images/common/back.gif[/img][/url]
关于这个问题呀!嗯!我用大概的意思解释下吧!
要是光用 su 的话,就是变量不变,指用户的环境不变,比如你用user3 su usre4 的时候,会显示你仍然在 user3 的环境下使用 user4 .如果加上 "-"的话,指切换用户 ... [/quote]
不错哦
finddream
su: Change the effective user id and group id to that of USER.
su - : -, -l, --login
make the shell a login shell