/etc/issue和/etc/motd和/etc/redhat-release linux
一、/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 操做系统的版本 网络
二、/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! spa
三、/etc/redhat-release
用于查看redhat系统的版本中的版本信息。
#cat /etc/redhat-release
CentOS Linux release 7.1.1503 (core)
操作系统