首页 > 系统服务 > 详细

Linux - su

时间:2015-05-11 14:38:00      阅读:142      评论:0      收藏:0      [点我收藏+]

su - && su - root: the same, login as root, pure login of root, totally new login of root, .bash_profile and .bashrc will be sourced.

su root && su : almost the same. A interactive shell will be open, use the exit will jump to the former users‘ shell. Only .bashrc will be sourced.

su && su -: su will not change the execution environment while su - will change the execution environment. 

su && sudo: sudo is one strict kind of su. Refer.

Linux - su

原文:http://www.cnblogs.com/flowerencedew/p/4494337.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!