There are two configuration files, issue and issuenet, in the etc folder for the welcome speech format displayed when a text device logs on to the system. Issue is local. Needless to say, issuenet must be remote! The two files can use escape sequences (two configuration files, issue and issue.net, are available in the welcome speech/etc folder for text devices to log on to the system. Issue is local. Needless to say, issue.net must be remote! The two files allow the use of the escape sequence (escape sequence). when the system encounters an escape sequence, it will automatically replace it with the corresponding information, for example, \ n represents the host name. The complete transfer sequence list is as follows (this list is taken from: man agetty, because this issue is explained by agetty): B Insert the baudrate of the current line. d Insert the current date. the current date on the local end is s Insert the system name, the name of the operating system. operating system name l Insert the name of the current tty line. displays the interfaces m Insert the architecture identifier of the machine, eg. i486. display the hardware level (i386/i38/ i586/i686 ....) n Insert the nodename of the machine, also known as the hostname. displays the host's network name o Insert the NIS domainname of the machine. display domain nameO Insert the DNS domainname of the machine. r Insert the release number of the OS, eg. 1.1.9. release version of the operating system (similar to uname-r) t Insert the current time. local end current time u Insert the number of current users logged in. number of logged-on users U Insert the string "1 user" or" Users "where Is the number of current users logged in. v Insert the version of the OS, eg. the build-date etc. in CentOS of the operating system version, the content of the two files is the same, as shown below: Welcome speech after CentOS release 6.1 (Final) Kernel \ r on an \ m system logon is successful: /etc/motd, "motd" is the abbreviation Of "Message Of ToDay", which is usually empty. * In CentOS 6.4, the motd file does not seem to support escape sequences. We can configure this file to say "Hello, welcome back!" to the current user after the user logs on successfully !", You can also warn the "bad guy" who is not doing anything about the system ". By configuring these two texts, you can customize the personalized information for logon. if you combine them with your own scripts, you can dynamically display more content, such as time reminders and system announcements, that's even more interesting!
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