自定义linux登陆logo
1. 众所周知,修改bashrc或者profile文件可以添加字符界面的logo
效果:每次登陆都显示
注:亲测,这可能会对初次登陆的远程提示符造成影响
2. 修改/etc/motd也可以设置登陆logo
效果:初次登陆显示
搞点带颜色的
echo -e "\033[0;31mWELCOME \033[1;32mTO \033[1;33mSANTIAGOD'S \033[1;34mLINUX\033[0m" > /etc/motd
[root@the ~]# cat /etc/motd.d/cockpit
Activate the web console with: systemctl enable --now cockpit.socket
补充
cat /etc/profile.d/motd.sh #!/bin/bash # Get system information HOSTNAME=$(hostname) KERNEL=$(uname -r) UPTIME=$(uptime -p) LOAD=$(uptime | grep -ohe 'load average[s:][: ].*' | awk '{ print $3 }') echo echo "System information:" echo " - Kernel: ${KERNEL}" echo " - Uptime: ${UPTIME}" echo " - Load average: ${LOAD}" echo