Shell的配置文件和读取顺序?

Wikipedia,自由的百科全书

前提Shell配置文件1配置文件2配置文件3配置文件4
Subshell
(直接输入sh,ksh,csh,bash命令
或者su)
sh
ksh
csh~/.cshrc
bash~/.bashrc ~/.inputrc /etc/inputrc
su -
telnet
ssh
rlogin
sh/etc/profile ${HOME}/.profile
ksh /etc/profile~/.profile
csh~/.cshrc ~/.login
bash~/.bash_profile~/.bash_login /etc/profile ~/.profile

参考Rolf Kersten的Solaris OE Guide for New System Administrators

Personal tools