login shell:直接启动终端机时,取得bash需要完整的登录流程,该过程为login shell。
non-login shell:通过x-window(图形界面)进入终端,获取bash的过程中不完整的登录流程。
login shell需要读取的配置文件:1、/etc/profile,2、~/.bash_profile。
non-login shell需要读取的配置文件仅为~/.bashrc(该文件在login shell流程中被~/.bash_profile调用)
login shell:直接启动终端机时,取得bash需要完整的登录流程,该过程为login shell。
non-login shell:通过x-window(图形界面)进入终端,获取bash的过程中不完整的登录流程。
login shell需要读取的配置文件:1、/etc/profile,2、~/.bash_profile。
non-login shell需要读取的配置文件仅为~/.bashrc(该文件在login shell流程中被~/.bash_profile调用)