自定义 Ubuntu 控制台登录前的提示信息

Tag: Ubuntu 
Posted on 2020-07-22

今天闲来无事,折腾了一个 Ubuntu 镜像,发现该镜像在控制台登录的时候,有一些提示信息,经过 google 之后,原来是藏在 /etc/issue 文件中,于是自己瞎写了一个。

Ubuntu 14.04.5 LTS \n \l
Welcome to My Server
==================================
\d  \t
\s  \m  \r
\U
==================================

变量说明:
b 当前行的波特率(不知道有什么用)
d 当前日期
s 操作系统名称
l 当前 tty 的名称
m 当前机器的体系结构标识符,例如:i686 或者 x86_64
n 主机名
o 当前域名
r 内核版本号
t 当前时间
u 当前登录的用户数,例如:2
U 带文字的用户数量,例如:2 users
v 当前操作系统版本,例如:构建日期
 评论
张三
orz
李四
orz orz
李小四
orz orz orz
张小三
orz orz orz orz
  搜索
  Tags
全部   Ubuntu   Linux   Python   Windows   Shell   转发   浏览器   js   KMS   循环   MySQL   字体   html   css   DNS   电源   多线程   反向代理   重定向   原创   WinSCP   随机   随机数   VSCode   venv   vbs   多进程   远程调试   字典   生活   激活   线程池   日志   数据库   网卡   截取字符   进度条   安装   进程池   领带   uuid   tc   IP   iostat   import   GitHub   dpkg   DHCP   curl   crx   CPU   cloud-init   Chrome   BBR   Apt   iptables   Kitsunebi   subprocess   SSH   SoftEther   Set   samba   pyflakes   pip   Office   Nginx   NextCloud   List   libreoffice   kvm   Adobe  
  功能
You can put anything you want inside of these side widgets. They are easy to use, and feature the new Bootstrap 4 card containers!