标题: linux中logout命令 [打印本页] 作者: wang_nning 时间: 2007-11-30 09:24 标题: linux中logout命令 我用的red hat linux
为什么使用logout命令退出帐号的时候shell中会提示
bash:logout:not login shell:use 'exit'作者: creamwar 时间: 2007-11-30 11:19
From:linuxsir.org by windrose
近来用man bash看了看bash的文档,其中在Files部分提到:
/etc/profile
The systemwide initialization file, executed for login shells
系统全程的初始化文件,为登录的shell所执行
~/.bash_profile
The personal initialization file, executed for login shells
个人的初始化文件,为登录的shell所执行
~/.bashrc
The individual per-interactive-shell startup file
个人的交互式shell的起始文件
~/.bash_logout
The individual login shell cleanup file, executed when a login shell exits
个人登录shell的清理文件,当登录shell退出时执行