开博第一篇文章,简单地写一篇linux欢迎界面吧 linux
能够经过修改/etc/motd 或/etc/issue两个文件实现修改登陆显示服务器
区别:/etc/motd:( 登陆成功才会显示 )网络
/etc/issue :(本地登陆前在login前显示)dom
/etc/motd:即messageoftoday布告栏信息 spa
默认该文件中没有内容,编辑该文件信息操作系统
************************[ WARNING ]*********************** Authorised access only This system is the property of ******* Disconnect IMMEDIATELY if you are not an authorized user! Your IP has been IDS records Don't damage any files! IF YOU HAVE ANY PROBLEM,PLEASE CONTACT ME : ******
exit后从新登陆该设备,显示生效。code
/etc/issue: 本地串口登陆前的显示栏blog
cat /etc/motd >> /etc/issue
经过本地串口tty登陆服务器接口
配置现实也正常。get
issue 内的各代码意义
本地端时间的日期;
\l 显示第几个终端机接口;
\m 显示硬件的等级 (i386/i486/i586/i686...);
\n 显示主机的网络名称;
\o 显示 domain name;
\r 操做系统的版本 (至关于 uname -r)
\t 显示本地端时间的时间;
\s 操做系统的名称;
\v 操做系统的版本.
简单的修改下issue文件,不要透露太多信息,尤为是内核版本
cat << EOF > /etc/issue > DATE: \d > ServerName: \s > EOF