debian12配置neofetch(ssh时Linux 系统信息显示)
1.运行命令安装 neofetch:
apt update
apt install neofetch -y
2.配置SSH 登录自动显示:
nano ~/.bashrc
在文件最后面加上这几行:
if [ -t 1 ]; then
neofetch
fi
Ctrl + O,Enter,Ctrl + X保存退出即可。
1.运行命令安装 neofetch:
apt update
apt install neofetch -y
2.配置SSH 登录自动显示:
nano ~/.bashrc
在文件最后面加上这几行:
if [ -t 1 ]; then
neofetch
fi
Ctrl + O,Enter,Ctrl + X保存退出即可。
评论已关闭