首页 > 其他 > 详细

issue和motd和redhat-release相关的作用

时间:2015-05-15 13:47:47      阅读:1142      评论:0      收藏:0      [点我收藏+]

/etc/issue和/etc/motd和/etc/redhat-release

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

用  法:前我们在终端登陆的成功后会有提示,我们可以做成欢迎使用或者警告使用着。

出现在登陆后。

***Wrrning***
Authorised access only
This system is the property of www.pcxxoo.com
Disconnect IMMEDIATELY if you are not an authorized user!
Your IP has been IDS records Don‘t damage any files!

3、/etc/redhat-release

用于查看redhat系统的版本中的版本信息。

#cat /etc/redhat-release

CentOS Linux release 7.1.1503 (core)



issue和motd和redhat-release相关的作用

原文:http://my.oschina.net/lenglingx/blog/415258

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!