1. 程式人生 > >雜貨:互動式shell和非互動式shell、登入shell和非登入shell的區別

雜貨:互動式shell和非互動式shell、登入shell和非登入shell的區別

[[email protected] ~]# man bash
-i If the -i option is present, the shell is interactive.
–noprofile Do not read either the system-wide startup file /etc/profile or any of the personal initialization files ~/.bash_profile, ~/.bash_login, or ~/.profile. By default, bash reads these files when it is invoked as a login shell (see INVOCATION below).