我不需要为虚拟机修改或创建消息,我只需要找出消息已经是什么。我已使用 /etc/update-motd.d/ 查看 MOTD 目录,但任何文件中都不存在该消息。
答案1
当天的消息在 中/etc/motd
。
如果是另一条消息,则用 查找它。
find /etc -mount -type f -print0 | xargs -0 grep -F 'some text from the message'
我不需要为虚拟机修改或创建消息,我只需要找出消息已经是什么。我已使用 /etc/update-motd.d/ 查看 MOTD 目录,但任何文件中都不存在该消息。
当天的消息在 中/etc/motd
。
如果是另一条消息,则用 查找它。
find /etc -mount -type f -print0 | xargs -0 grep -F 'some text from the message'