bash的登录与欢迎信息:/etc/issue,/etc/motd


bash的登录与欢迎信息设置

issue内的各代码的意义:

  • \d 本地端时间的日期
  • \l 显示第几个终端机接口
  • \m 显示硬件的等级(i386/i486/i586)
  • \n 显示主机的网络名称
  • \o 显示domain name
  • \r 操作系统的版本(uname -r)
  • \t 显示本地端时间的时间
  • \s 操作系统时间
  • \v 操作系统的版本

/etc/issue 文件设置,在tty1-tty6没有登录的情况下显示登录前提示信息,如图:

bash的登录与欢迎信息:/etc/issue,/etc/motdbash的登录与欢迎信息:/etc/issue,/etc/motd

/etc/motd文件设置,,在tty1-tty6显示登录后提示信息,如图:

bash的登录与欢迎信息:/etc/issue,/etc/motdbash的登录与欢迎信息:/etc/issue,/etc/motd

本文永久更新链接地址:

相关内容