LinuxSir.cn,穿越时空的Linuxsir!

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

Linux交互式登录和非交互式登录的区别?

[复制链接]
发表于 2008-3-13 11:18:54 | 显示全部楼层 |阅读模式
我平时主要用debian做服务器,前些天去应聘一Linux方面的工作,结果主管第一个问题就问:linux交互式登录和非交互式登录的区别,我还真不知道,网上也没搜索到,有知道的达人请告知一声,谢谢.
发表于 2008-3-13 12:44:49 | 显示全部楼层
交互登录没听过,
交互启动倒知道,系统启动过程中,每启动一个服务,会提示Yes or no的确认
回复 支持 反对

使用道具 举报

发表于 2008-3-13 15:03:58 | 显示全部楼层
An interactive shell is one started without  non-option  arguments  and
       without the -c option whose standard input and error are both connected
       to terminals (as determined by isatty(3)), or one started with  the  -i
       option.   PS1 is set and $- includes i if bash is interactive, allowing
       a shell script or a startup file to test this state.
回复 支持 反对

使用道具 举报

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

本版积分规则

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