配置文件
bash在用户家目录下有三个配置文件:~/.bash_profile、~/.bashrc、~/.bash_logout。 在/etc目录有一个配置文件
~/.bash_profile
bash中最重要的配置文件,在每次用户登录时被读取执行一次。在Debian系的发行版中命名为.profile
~/.bashrc
当在bash中调用另外一个bash shell的时候读取。目的是登录环境和子shell环境的隔离。通常~/.bash_profile中都会再调用一次~/.bashrc实现用户环境的统一。
~/.bash_logout
退出bash的时候被读取,可以将一些清理命令放到这里。
_
