登录shell 和非登录shell 对于用户而言的区别就是:在登录和执行时shell时 启动文件不同
登录shell 登录时对应 /etc/profile 执行时 ~/.bash_login or ~/.bash_profile or ~/.profile
非登录shell 执行时 /etc/bash.bashrc ~/.bashrc
本文阐述了登录shell和非登录shell的主要区别,在于它们启动时所执行的配置文件不同。登录shell会加载系统级配置文件/etc/profile及用户的个性化配置文件如~/.bash_profile,而非登录shell则加载/etc/bash.bashrc和~/.bashrc。
登录shell 和非登录shell 对于用户而言的区别就是:在登录和执行时shell时 启动文件不同
登录shell 登录时对应 /etc/profile 执行时 ~/.bash_login or ~/.bash_profile or ~/.profile
非登录shell 执行时 /etc/bash.bashrc ~/.bashrc
5519

被折叠的 条评论
为什么被折叠?
