LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 745|回复: 1

关于Bash shell启动问题的模式,有点不懂,请高人指点

[复制链接]
发表于 2006-7-22 22:20:20 | 显示全部楼层 |阅读模式
Bash  shell调用配置文件分为三种情况,第一种情况是登录,第二种情况是非登录交互式(直接执行bash进入shell环境),第三种情况为退出登录。
   我不知道什么是登录,什么是非登录交互式?请高人指点,谢谢
发表于 2006-7-25 12:54:51 | 显示全部楼层
More precisely, there should be four situations:

1. Interactive: 1a. Login; 1b. non-login.
2. Non-Interactive.
3. Logout.

1. Interactive and login: read in all startup files.
2. Interactive but non-login: only read in ~/.bashrc
3. non-interactive: read no file but source $BASH_ENV if it is there.
4. Logout: read in ~/.bash_logout
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表