原帖由 THEBEST 于 2006-5-14 19:08 发表
/etc下有bashrc ,profile公用配置脚本,在用户目录下也可以修改.bashrc .profile来设置一些变量。
好像在两个文件中都一样,比如在.bashrc中可以直接设置一些变量,而在.profile中也可以设置变量然后在.bashrc启用.profile脚本,为什么要这样呢?用一个不就好了么?
原帖由 kenduest 于 2006-5-14 20:05 发表
这些问题其实要回答很快,不过我会建议你先自己看一下 bash 的 manpage 文件,先把所谓 login shell 与 non-login shell 的差别弄清楚,包含其中里面还有 interactive mode 与 non-interactive mode 的差异也 ...
原帖由 THEBEST 于 2006-5-14 21:19 发表
什么是交互式和非交互式?non-login又是什么情况 ?
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |