首先查看当前都写了什么
# cat /etc/motd
Linux qs-tester 2.6.32-5-686 #1 SMP Mon Jan 16 16:04:25 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
上面有内核建立的时间和一些声明。其实它的作用是通知或说明事项,在用户登录之后显示。
现在修改它
vim /etc/motd
如将内容变为,PS:如果用tty支持中文,也可以写入中文
##jpuyy-downloader## ^_^ 洗洗更健康
退出重新登录,就能看到上面写的了。
同样的还有/etc/issue,它的显示是在登录之前,起提示作用。
当前显示的是
Debian GNU/Linux 6.0 \n \l
\n意为当前主机的网络名称
\l意为当前终端的编号
更多参数可参考:http://www.cyberciti.biz/faq/howto-change-login-message/
Leave a Reply