1、/etc/issue
用 法:当我们在终端接口登录的时候,会有几行提示字符串,那么这个字符串就是设置在/etc/issue。
[root@linux ~]#cat /etc/issue
CentOS release 5.6 (Final)
Kernel \r on an \m
issue内各代码说明:
\d 本地端时间的日期
\l 显示第几个终端接口
\m 显示硬件的等级
\n 显示主机的网络名称
\o 显示域名
\r 操作系统的版本
\t 显示本地端的时间
\s 操作系统的名称
\v 操作系统的版本
2、/etc/motd
用 法:如果想让用户登录后获取一些消息,比如想让大家都知道的消息,就可以加入这个文件,当登录后,告诉登录者,系统将会在某个时间进行维护。
eg:
[root@linux ~]#vi /etc/motd
Hello everyone,
Our server will be maintained at ....
please don't login at that time,thanks.
那么当用户登录的时候,就会显示设置的内容了。
linux etc/issue and etc/motd
转载文章标签 linux /etc/issue /et 文章分类 运维
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
linux之/etc/issue和/etc/motd
/etc/issue和/etc/motd
linux 基础 知识 -
linux 界面 /etc/motd
linux 界面cat /etc/motd
cat /etc/motd 配置文件