linux 修改开机欢迎文字

1、/etc/issue 本地登陆显示的信息,本地登录前

2、/etc/issue.net 网络登陆显示的信息,登录后显示,需要由sshd配置

3、/etc/motd 常用于通告信息,如计划关机时间的警告等,登陆后的提示信息

d          //本地端时间的日期;
l          //显示当前tty的名字即第几个tty;
m          //显示硬体的架构 (i386/i486/i586/i686...);

          //显示主机的网路名称;
o          //显示 domain name;

          //当前系统的版本 (相当于 uname -r)
	          //显示本地端时间的时间;
u          //当前有几个用户在线。
s          //当前系统的名称;
v          //当前系统的版本。

ps:/etc/motd 中上述代码无效

转载自 https://blog.csdn.net/dreams_deng/article/details/77196836


原文地址:https://www.cnblogs.com/zwsblogs/p/9200514.html