服务器登录后,执行的shell为
.bash_profile
.bash_login
.profile
注销主机后,执行的shell为
.bash_logout
执行交互式shell时,
.bashrc
执行非交互式shell,会执行变量设置的BASH_ENV
例如:export BASH_ENV="/root/test.sh"
image.png.bash_profile
.bash_login
.profile
.bash_logout
.bashrc
例如:export BASH_ENV="/root/test.sh"
image.png本文标题:shell不同时间执行shell的区别
本文链接:https://www.haomeiwen.com/subject/tgueyqtx.html
网友评论