据我所知,交互shell可能登录也可能不登录,它们的启动文件是不一样的。
/etc/profile
~/.bash_profile
~/.bash_login
~/.profile
/etc/bash.bashrc
~/.bashrc
每次使用交互式 shell 时,我都想设置一些变量,无论它是否是登录 shell。
bash login bashrc
bash ×1
bashrc ×1
login ×1