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

/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)



转载于:https://my.oschina.net/lenglingx/blog/415258

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值