码迷,mamicode.com
首页 > 系统相关 > 详细

Linux - su

时间:2015-05-11 14:39:25      阅读:159      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!