选择与使用Shell
在Debian GNU/Linux系统中, /etc/profile 被配置为调用 /etc/bash.bashrc ,默认的 ~/.profile 被配置为调用 ~/.bashrc ,这样交互式登录shell也能获取交互式非登录shell的所有配置文件。
1. 交互式登录shell
交互式登录shell的配置文件因shell类型而异,具体如下表所示:
| Shell | 读取的配置文件 |
| — | — |
| bash | /etc/profile ,然后是 ~/.bash_profile 、 ~/.bash_login 和 ~/.profile 中第一个找到的文件 |
| csh | /etc/csh.cshrc ,接着根据操作系统不同,可能是 /etc/csh.login 、 /etc/.login 、 /etc/login.std 或 /etc/cshrc ,之后是 ~/.cshrc 和 ~/.login |
| sh | /etc/profile 然后是 ~/.profile |
| tcsh | 与cs
超级会员免费看
订阅专栏 解锁全文
2670

被折叠的 条评论
为什么被折叠?



