/etc/profile 档案设定了几个重要的变数,例如:‘PATH、USER、MAIL、 HOSTNAME、HISTSIZE、umask’等等
~/.bash_profile, ~/.bash_login, ~/.profile 会先去读取 ~/.bash_profile,找不到时,就去读取 ~/.bash_login ,然后才是 ~/.profile。
~/.bashrc 每次执行 shell script 的时候都会被重新使用一遍
~/.bash_history
~/.bash_logout
Bash
--login 将bash作为一个登录shell调用
--noediting 禁用控制键
--noprofile 不读取初始化文件:/etc/profile、~/.bash_profile、~/.bash_login或~/.profile
--norc bash不读取~/.bashrc文件
--rcfile file 使用该初始化文件代替~/.bashrc