A little Linux-about the/etc/issue file and custom logon prompt every day

Source: Internet
Author: User

The man manual describes the/etc/issue file as follows:

The file/etc/issue is a text file which contains a message or system identification to be printed before the login prompt. it may contain various @ char and \ char sequences, if supported by Getty.

As mentioned above, modifying the/etc/issue file can be used to modify the logon prompt. Modify and save the file, restart, and restart the file,Press the combination keyCTRL + ALT + F1 enter the terminal mode, and you will see the modified prompt.

/Etc/issue-escape code

The issue-file (/etc/issue or the file set with the-F option) may contain in certain escape codes to display the system name, date and time etc. all escape codes consist of a backslash (\) immediately followed by one of the letters explained below.

\ B: Insert the baudrate of the current line.

\ D: Insert the current date.

\ S: Insert the system name, the name of the operating system.

\ L: Insert the name of the current tty line.

\ M: Insert the architecture identifier of the machine, eg. iworkflow

\ N: Insert the nodename of the machine, also known as the hostname.

\ O: Insert the domainname of the machine.

\ R: Insert the release number of the OS, eg. 1.1.9.

\ T: Insert the current time.

\ U: Insert the number of current users logged in.

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

Related Article

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.