选择与使用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