这里还是不习惯,看真身还是请前往: http://lawzjf.itpub.net
RedHat中四个用户配置文件使用的先后
上一篇 /
下一篇 2007-02-04 00:00:00
/ 个人分类:小企鹅
在/etc/profile前后分别加上一行:
into /etc/profile
leave /etc/profile
/etc/bashrc、/home/oracle/.bash_profile、/home/oracle/.bashrc也类似处理,则切换用户时可以看到如下效果从而可以得知,利用四个文件的先后顺序:
[root@law etc]# su - oracle
into /etc/profile
leave /etc/profile
into bash_profile
into /home/oracle/bashrc ========在.bash_profile中调用了/home/oracle/bashrc
into /etc/bashrc ==========在/home/oracle/bashrc 中调用了/etc/bashrc
leave /etc/bashrc
leave /home/oracle/bashrc
leave bash_profile
导入论坛
引用链接
收藏
分享给好友
推荐到圈子
管理
举报
TAG: