Welcome Message when login to Linux

风行水上 @ 2012-11-20 09:12:27
标签:

    用户通过shell登录到一台linux机器时,有时会看到欢迎信息、配置信息、公告信息等。比如下面的例子

            Linux 2.6.18-194.8.1.el5 x86_64
            OS:        RedHat Enterprise Linux 5.5
            Hostname:  host_xxx
            Location:  somewhere
            CPU: 12 x 2660 MHz, Intel(R)Xeon(R) (2 socket, six core, No HT)
            Memory: 145 GB RAM, 225 GB Swap
    
        *************************************************************************
        NOTE: THIS MACHINE HAS BEEN RESERVED BY XXX UNTIL 11/27.
        *************************************************************************
    

    这个信息可以通过文件 /etc/motd 来配置。motd的意思是"message of the day"。

    /etc/motd 文件的内容显示在用户登录成功之后。还有一个文件 /etc/issue 的内容则显示在用户登录之前。

    标签:

      分享到:
      comments powered by Disqus

      17/19ms