如何更改登录屏幕横幅

下面的技巧是改变登录提示的横幅,即登录前消息。

要更改的文件是 /etc/issue。
它还支持转义码以显示一些添加信息:

\b = Insert the baudrate of the current line.
\d = Insert the current date.
\s = Insert the system name, the name of the operating system.
\l = Insert the name of the current tty line.
\m = Insert the architecture identifier of the machine, eg. i486
\n = Insert  the nodename of the machine, also known as the hostname.
\o = Insert the NIS domainname of the machine.
\O = Insert the DNS domainname of the machine.
\r = Insert the release number of the OS, eg. 1.1.9.
\t = Insert the current time.
_= Insert the number of current users logged in.
_= Insert the string "1 user" or "<n> users" where <n> is the number of users login.
日期:2020-06-02 22:17:24 来源:oir作者:oir