Modify welcome information before and after Linux SSH login

Source: Internet
Author: User

Linux can set the welcome information before and after the login, although there is no practical use, but this time in the actual work encountered, I will tidy up and share with you

Before entering the user name in the login system, you can see the WELCOME ... Information, this will show the LINUX distribution name, kernel version number, date, machine information and so on, to set up, first open the /etc/issue file, you can see inside is such a section "Welcome to <linux release version name >-kernel followed by the parameters \ "

Description of the following parameters:

\ r Displays the kernel kernel version number; \l Displays the Virtual console number; \d Displays the current date; \ n Displays the hostname; \m Displays the machine type, which is the CPU architecture, such as i386; /c10>

Understand the meaning of the parameters, to modify, the above section of the Welcome information is modified as follows, you can display all the necessary information:

Welcome to <linux release version name >-kernel \ r (\l) \d \ n \m.

to see effects , exit sign out and look!
also has /etc/motd This file, you can add any welcome information you like, this message will be displayed after successful login!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.