1,/etc/issue
Usage: When we log in at the terminal interface, there will be a few lines of hint string, then this string is set in/etc/issue.
eg
[[email protected] ~] #cat /etc/issue
centos Release 5.6 (Final)
kernel \ r on an \m
[Email protected]/]# >/etc/issue #清空OS内核参数版本
[Email protected]/]# cat/dev/null >/etc/issue #清空OS内核参数版本
[Email protected]/]# cat/etc/issue #查看issue中的内容
CentOS Release 6.6 (Final)
Kernel \ r on an \m
[Email protected]/]# cat/etc/issue.net #查看issue. NET content
CentOS Release 6.6 (Final)
Kernel \ r on an \m
2,/ETC/MOTD
Usage: If you want the user to log in and get some messages, such as a message that you want everyone to know, you can join the file, and when you log in, tell the person who is logged in.
eg:
[Email protected] ~]$ VI/ETC/MOTD
Welcome to the Jiangxi Applied Engineering Vocational College CentOS Server!
This article is from the "linux~dba~mba~edu" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1678487
How to hide the Linux kernel version and the information displayed when logging in