- 论坛徽章:
- 0
|
there is no $PATH in the /root
i think RH 9 is a little bit different, because it uses a small process to handle the PATH variant. if you vi the /etc/profile, you can see it almost at the top of the file named "pathmunge ()",pay attension to these lines:
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
and if you go dep into the process, you will find in which order the whole PATH string organized,simply say the diffrence between adding an "after" parameter or not. |
|