linux – motd登录消息在重启后不会保存

linux – motd登录消息在重启后不会保存,第1张

概述出于某种原因,我昨天从标准的“Debian GNU / Linux自带无保证……”编辑了motd文件到我自己定制的消息.今天系统重启后,我的自定义消息消失了,它又回到了: The programs included with the Debian GNU/Linux system are free software;the exact distribution terms for each pr 出于某种原因,我昨天从标准的“Debian GNU / @L_403_0@自带无保证……”编辑了motd文件到我自己定制的消息.今天系统重启后,我的自定义消息消失了,它又回到了:
The programs included with the Debian GNU/linux system are free software;the exact distribution terms for each program are described in theindivIDual files in /usr/share/doc/*/copyright.Debian GNU/linux comes with absoluteLY NO WARRANTY,to the extentpermitted by applicable law.

如何使我自己的信息永久化?顺便说一句,我使用的是Debian 6.

解决方法 Debian默认将/ etc / motd作为/ var / run / motd的符号链接.这是在/etc/init.d/bootlogs启动时更新的.

要使用自己的motd,只需破坏/ etc / motd符号链接并将其创建为常规文件即可.

总结

以上是内存溢出为你收集整理的linux – motd登录消息在重启后不会保存全部内容,希望文章能够帮你解决linux – motd登录消息在重启后不会保存所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/yw/1040651.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存