转自 http://blog.sina.com.cn/s/blog_63f3c0b20102wo42.html
ubuntu 与别的linux不同,直接修改/etc/motd文件重登录后无效。因为这里/etc/motd是一个符号链接,指向/var/run/motd,应该 是一个启动后在生成的文件。在版本12.04中,找到生成的脚本在目录/etc/update-motd.d/中,修改00-headerr,10-help-text的printf部分可是实现
修改后用:sudo run-parts /etc/update-motd.d 去执行就会立即见到效果,而不用反复注销登录。
修改/etc/motd不生效解决办法
最新推荐文章于 2024-08-17 18:47:02 发布