Aus*_*urk 2 bash bashrc
我在尝试设置一点 ASCII 艺术以在连接和注销时显示时遇到了问题。
我可以使用 .bashrc 和 .bash_logout 为一个用户执行此操作,并通过创建 /etc/profile.d/motd.sh 设置登录 MOTD,但还没有找到设置通用注销 MOTD 的方法。我怎样才能做到这一点?
我正在运行 CentOS 6。
Chr*_*her 7
从手册(man bash):
man bash
当登录 shell 退出时,bash 从文件 ~/.bash_logout 和 /etc/bash.bash_logout 中读取并执行命令(如果文件存在)。
在 U&L SE 上有另一个关于登录消息的答案。
归档时间:
10 年,3 月 前
查看次数:
5147 次
最近记录:
8 年,2 月 前