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

Source: Internet
Author: User


A little Linux every day --- about the/etc/issue file and the User-Defined logon prompt man Manual's description of the/etc/issue file is: www.2cto.com 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. After the file is modified and saved, restart the file. After the restart, press Ctrl + Alt + F1 to enter the terminal mode. Then you can see the modified prompt. /Etc/issue-escape code The issue-file (/etc/issue or the file set with the-f option) may contain certain ecodes 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. iden\ 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.

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.