美文网首页
shell不同时间执行shell的区别

shell不同时间执行shell的区别

作者: SkTj | 来源:发表于2019-02-22 15:46 被阅读1次

    服务器登录后,执行的shell为

    .bash_profile
    .bash_login
    .profile

    注销主机后,执行的shell为

    .bash_logout

    执行交互式shell时,

    .bashrc

    执行非交互式shell,会执行变量设置的BASH_ENV

    例如:export BASH_ENV="/root/test.sh"

    image.png

    相关文章

      网友评论

          本文标题:shell不同时间执行shell的区别

          本文链接:https://www.haomeiwen.com/subject/tgueyqtx.html