The contents of /etc/motd are displayed by login(1) after a suc‐
cessful login but just before it executes the login shell.
The abbreviation "motd" stands for "message of the day", and this
file has been traditionally used for exactly that (it requires
much less disk space than mail to all users).
可见,motd并不执行指令只是在shell运行之前将内容显示在终端。
motd经常用于ssh登录后对用户的提醒、显示ASCII Art等
YuleMotd插件,在游戏中输入/motd list然后输入/motd remove <编号>就能看到list里面的页面,可以改的,然后输入/motd add <标语>
即可添加一条标语,也就是服务器的名字,如果添加第二条,刷新随时都要变
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)