登录前/etc/issue与登陆后/etc/motd配置文件

  • /etc/issue 本地端登录前显示信息文件
  • /etc/issue.net 网络端登录前显示信息文件
  • /etc/motd 登陆后显示信息文件

登录前/etc/issue默认显示为:

    CentOS release 6.10 (Final)
    Kernel \r on an \m

可以添加以下几个常用选项

\r 操作系统的版本 (类似 uname-r)
\m 架构
\t 显示本地端时间的时间
\d 本地端时间的日期
\l 显示第几个终端机的接口
\n 显示hostname名称


登陆后/etc/motd默认为空,可以自行添加:

[root@Dadda6 ~]#cat etc/motd
 
                  _oo0oo_
                 088888880
                 88" . "88
                 (| -_- |)
                  0\ = /0
               ___/'---'\___
             .' \\\\| |//// '.
            / \\\\|||:|||//// \
           /_ ||||| -:- ||||| _\
          |   | \\\\\-///// |   |
          | \_|  ''\---/''  |_/ |
          \  .-\__  '-'  __/-.  /
        ___'. .'  /--.--\  '. .'___
     ."" '<  '.___\_<|>_/___.' >'  "".
    | | : '-  \'.;'\ _ /';.'/ - ' : | |
    \  \ '_.   \_ __\ /__ _/   ._' /  /
====='-.____'.___ \_____/___.-'____.-'=====

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        好好学习            天天向上

猜你喜欢

转载自blog.csdn.net/weixin_40001704/article/details/81844992
今日推荐