The difference between su and su -
来源:互联网 发布:java连接rac io异常 编辑:程序博客网 时间:2024/05/18 00:42
"su" is equivalent to "su root"
"su -" is equivalent to "su - root"
"su -" or "su - root"
when you use this command, you are given a new login shell from the Linuxserver, which is the same as you logout from the existing user and perform a fresh login. if you type "pwd", you will notice that you are in rootdirectory /root. The environment path will be also change to root's environment.
"su" or "su root"
if you "su" only then basically you just temporary "borrow" the root permission without having all the rootenvironmentsetting. You will notice that you are not having sbin path. Which means some root commands you issue at this environment might not work.
"su -" is equivalent to "su - root"
"su -" or "su - root"
when you use this command, you are given a new login shell from the Linuxserver, which is the same as you logout from the existing user and perform a fresh login. if you type "pwd", you will notice that you are in rootdirectory /root. The environment path will be also change to root's environment.
"su" or "su root"
if you "su" only then basically you just temporary "borrow" the root permission without having all the rootenvironmentsetting. You will notice that you are not having sbin path. Which means some root commands you issue at this environment might not work.
- The difference between su and su -
- Difference between "su - $username" and "su $username"
- What’s the Difference Between Sudo & Su?
- The difference between (()) and ().
- the difference between "./" and "sh"
- su
- SU
- Su
- su
- su
- su
- su
- su
- SU
- SU
- su
- su
- su
- 在Ubuntu12.04LTS的Dash主页上创建快捷方式
- CuteFtp通用注册码
- Android trouble shooting 整理(转)
- [综合]表达式语言(1)
- 配置Opencv:Win7+VS2010+OpenCV 2.4.3
- The difference between su and su -
- 钓鱼与晒网问题
- 【APUE】笔记之——进程控制
- 大话铁道部12306订票系统云架构
- [面试备] 暴搜 or 二分图的经典升级 : hdu 1045 Fire Net 示例 [ 二分图 ]
- 博友收藏
- 重装Ubuntu12.04LTS后耳机没有声音
- Eclipse Tomcat
- zhuan----Win32下VS2008编译chrome浏览器--------生成project