由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - setting PATH; how?
相关主题
Newbie questionbash中比较无聊的功能
Evolution email client s...l...o...w...新手问个shell的问题
新手问问题,在Mac里用linux请总结一下:如何实现自启动 autostart?
setting up bashubuntu 里 term的字的颜色怎么显示?
找不到命令的路径装windows文件的硬盘
小白问个csh的问题初学linux,好几个小问题。
bin run as root, 它会不会pick up /root/.bashrc里的setting ?如何在fcitx下输入中文
Loving Qt请教LINUX USERMOD命令 (转载)
相关话题的讨论汇总
话题: path话题: bashrc话题: etc话题: setting话题: bash
进入Linux版参与讨论
1 (共1页)
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
1 (共1页)
进入Linux版参与讨论
相关主题
请教LINUX USERMOD命令 (转载)找不到命令的路径
请教如何更改启动时的默认目录?小白问个csh的问题
why terminal is not like an editor?bin run as root, 它会不会pick up /root/.bashrc里的setting ?
The command line is powerful, but the UI can be more efficient!Loving Qt
Newbie questionbash中比较无聊的功能
Evolution email client s...l...o...w...新手问个shell的问题
新手问问题,在Mac里用linux请总结一下:如何实现自启动 autostart?
setting up bashubuntu 里 term的字的颜色怎么显示?
相关话题的讨论汇总
话题: path话题: bashrc话题: etc话题: setting话题: bash