[Tips] Some information on Linux gets

Source: Internet
Author: User

1. After the Linux system is logged in, the following is displayed
1 xx:19704.1. 6 #1: armv7l 

So where does this information come from, like Jul19 13:15 ....

Kernel each compile time in the source of what position?

Include/generated/compile.h

2. Where is the kernel version information stored in the source code?

Include/generated/utsrelease.h

3. How can I customize the information before and after my login?

/etc/issue, you can choose to do a login prompt here, or project logo printing, you can choose \ n \l can see hostname and TTY login information

/etc/Issue–escape codethe Issue-file (/etc/issue or the fileSetWith the-f option) may contain 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 BAU Drate of the 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. I486\n:insert the nodename of the machine, also known asthe 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 loggedinch. \u:insert Thestring“1User "or" users "where  isThe number of current users loggedinch. \v:insert the version of the OS, eg. the build-date etc.
4. How do I check the system login information and some operation log?

/var/log/auth.log

[Tips] Some information on Linux gets

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.