r***e 发帖数: 2000 | 1 I noticed there were some out dated path in my $PATH, for example,
Qt3 and RealPlayer, etc. However, I couldn't find exactly where did
I set them. I checked .bash_profile, .bashrc, /etc/bashrc, /etc/profile
and they were not there.
How can I remove them from $PATH? Thank you.
It's bash under Fedora 18, if that matters. | s***g 发帖数: 495 | 2 Put
export PATH='whatever you want'
in .bashrc
【在 r***e 的大作中提到】 : I noticed there were some out dated path in my $PATH, for example, : Qt3 and RealPlayer, etc. However, I couldn't find exactly where did : I set them. I checked .bash_profile, .bashrc, /etc/bashrc, /etc/profile : and they were not there. : How can I remove them from $PATH? Thank you. : It's bash under Fedora 18, if that matters.
| r***e 发帖数: 2000 | 3
谢谢,但是我的问题是想取消路径,但是找不到原来是在哪里设的。
【在 s***g 的大作中提到】 : Put : export PATH='whatever you want' : in .bashrc
| d****g 发帖数: 527 | 4 check if your .bashrc and .bash_profile source any file
【在 r***e 的大作中提到】 : I noticed there were some out dated path in my $PATH, for example, : Qt3 and RealPlayer, etc. However, I couldn't find exactly where did : I set them. I checked .bash_profile, .bashrc, /etc/bashrc, /etc/profile : and they were not there. : How can I remove them from $PATH? Thank you. : It's bash under Fedora 18, if that matters.
| a9 发帖数: 21638 | 5 他这个命令不就是清空原来的PATH,设成新的吗?
【在 r***e 的大作中提到】 : : 谢谢,但是我的问题是想取消路径,但是找不到原来是在哪里设的。
| s***g 发帖数: 495 | 6 man grep
【在 r***e 的大作中提到】 : : 谢谢,但是我的问题是想取消路径,但是找不到原来是在哪里设的。
| r***e 发帖数: 2000 | 7 Solved, they are in /etc/profile.d |
|