Linux modifies MOTD to provide personalized login information

Source: Internet
Author: User

Server environment: ubuntu12.04

Modify the following script to modify the system prompt text at login.

[Email protected]:/etc/update-motd.d# ll
Total 20
Drwxr-xr-x 2 root root 4096 Nov 11 02:16.
Drwxr-xr-x root root 4096 8 02:31. /
-rwxr-xr-x 1 root root 1220 Nov 02:09 00-header*
-rwxr-xr-x 1 root root 1478 Nov 02:16 10-help-text*
-rwxr-xr-x 1 root root 1158 Apr 99-footer*
Header files provide information about the display of the header, default to the version of the operating system, and so on.

Help-text is displayed as the main text message, which can include some warnings and so on.

Footer The end of the file.

All of these are shell scripts. Can be modified after the next time a new session request comes into effect.

This article is from the "technology for the King" blog, please be sure to keep this source

Linux modifies MOTD to provide personalized login information

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: 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.