freeice 于 2009-09-19 14:14:19发表:
看来得多向8楼的学习啊!
wang7131984 于 2009-09-17 17:07:58发表:
对与bash /etc/profile ~/.bash_profile ~/.bash_login ~/.bash_rc ~/.bash_logout 才是bash的真正配置文件。 其他都是source来的。 ~/.bash_rc是普通的交互式shell的配置文件,而其他是login shell的配置文件。
xht0529 于 2009-09-17 16:43:52发表:
高人啊
wdnyz_yf 于 2009-09-16 11:14:45发表:
login shell 为开机登入时所载入之系统环境变数,个人环境变数,alias or shell fuction , 其载入顺序为 /etc/profile--> /etc/profile.d/*.sh --> ~/.bash_profile --> ~/.bash_rc --> /etc/bashrc 这样理解对吗?
wang7131984 于 2009-09-15 17:27:31发表:
网上搜一下login shell, interactive shell, subshell, shell script之间的区别吧
wdnyz_yf 于 2009-09-15 16:08:13发表:
意思就是登录界面到桌面就运行了对应的shell脚本吧?
ffsedan 于 2009-09-15 13:22:35发表:
牛人!
wang7131984 于 2009-09-15 11:41:00发表:
init-fork->init child-exec->getty-exec->login-exec->login_shell
freeice 于 2009-09-19 14:14:19发表:
看来得多向8楼的学习啊!
wang7131984 于 2009-09-17 17:07:58发表:
对与bash
/etc/profile
~/.bash_profile
~/.bash_login
~/.bash_rc
~/.bash_logout
才是bash的真正配置文件。
其他都是source来的。
~/.bash_rc是普通的交互式shell的配置文件,而其他是login shell的配置文件。
xht0529 于 2009-09-17 16:43:52发表:
高人啊
wdnyz_yf 于 2009-09-16 11:14:45发表:
login shell 为开机登入时所载入之系统环境变数,个人环境变数,alias or shell fuction ,
其载入顺序为
/etc/profile--> /etc/profile.d/*.sh --> ~/.bash_profile --> ~/.bash_rc --> /etc/bashrc
这样理解对吗?
wang7131984 于 2009-09-15 17:27:31发表:
网上搜一下login shell, interactive shell, subshell, shell script之间的区别吧
wdnyz_yf 于 2009-09-15 16:08:13发表:
意思就是登录界面到桌面就运行了对应的shell脚本吧?
ffsedan 于 2009-09-15 13:22:35发表:
牛人!
wang7131984 于 2009-09-15 11:41:00发表:
init-fork->init child-exec->getty-exec->login-exec->login_shell