自定义 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   DNS   css   多线程   VSCode   Office   安装   WinSCP   字典   原创   多进程   反向代理   领带   截取字符   随机数   随机   重定向   远程调试   进程池   进度条   网卡   线程池   电源   生活   激活   浏览器   日志   数据库   venv   vbs   uuid   IP   iostat   import   GitHub   dpkg   DHCP   curl   crx   CPU   cloud-init   BBR   Apt   iptables   Kitsunebi   kvm   tc   subprocess   SSH   SoftEther   Set   samba   pyflakes   pip   Nginx   NextCloud   List   libreoffice   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!