这里还是不习惯,看真身还是请前往: 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:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-10-12  
   1234
567891011
12131415161718
19202122232425
262728293031 

我的存档

数据统计

  • 访问量: 2797
  • 日志数: 804
  • 建立时间: 2008-01-18
  • 更新时间: 2008-01-18

RSS订阅

Open Toolbar