MK.*_*MK. 7 linux bash path environment-variables
我在 linux 中有一个带有 bash shell 的 xterm。当我echo $PATH
,它显示一个目录,我想知道谁把这个目录放在PATH
. 我怎样才能知道?
谢谢!
假设您的登录 shell 是 bash,您可以开始查找以下文件:/etc/profile
、~/.bashrc
和~/.bash_profile
。如果您从另一个 shell 调用 bash,那么您可能需要检查其他 shell 设置了哪些变量。
归档时间: |
|
查看次数: |
7441 次 |
最近记录: |