当前位置: > Linux教程 > Linux学习 >

su - root 和 su root 的区别

时间:2015-10-11 21:16来源:linux.it.net.cn 作者:IT
su - root:表示人以root身份登录
just like login as root, then the shell is login shell,
which mean it will expericene a login process,
usually .bash_profile and .bashrc will be sourced
su root:表示与root建立一个链接,通过root执行命令
like you open an interactive shell in root name,
then only .bashrc will be sourced. (责任编辑:IT)
------分隔线----------------------------