这对你有帮助吗?在我的 debian buster 中:
find /etc -type f -name "*bashrc*" 2> /dev/null
/etc/skel/.bashrc
/etc/bash.bashrc
Run Code Online (Sandbox Code Playgroud)
Bash 的 Debian 联机帮助页说
当一个不是登录 shell 的交互式 shell 启动时,bash 会从 /etc/bash.bashrc 和 ~/.bashrc 读取并执行命令,如果这些文件存在的话。
所以你寻求的答案似乎是/etc/bash.bashrc
。
Bash 自己的文档只提到了~/.bashrc
,但是在编译时bashrc
可以配置系统范围的Debian 已修补手册页以反映它正在使用中。
归档时间: |
|
查看次数: |
1282 次 |
最近记录: |