名字上的不同:
Login shell:需要登录,如,tty1~tty6
No login shell:不需要登录,如,登录了X Window开一个bash,或者bash中bash
读取配置上的不同:
Login shell:1./etc/profile
2.~/.bash_profile 或~/.bash_login 或~/.profile(按顺去取,前面没有的才找后一个,只找一个)
No login shell:~/.bashrc
(profile和bashrc区别看下篇)
Login shell:需要登录,如,tty1~tty6
No login shell:不需要登录,如,登录了X Window开一个bash,或者bash中bash
Login shell:1./etc/profile
2.~/.bash_profile 或~/.bash_login 或~/.profile(按顺去取,前面没有的才找后一个,只找一个)
No login shell:~/.bashrc
(profile和bashrc区别看下篇)
转载于:https://www.cnblogs.com/xiaoyaz/p/10631669.html