In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to modify the login information of the Ubuntu system", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to modify the login information of the Ubuntu system" bar!
Ubuntu login and welcome message control / etc/issue and / etc/motd
The difference between / etc/issue and / etc/motd is that when a network user logs in to the system through a serial port, the file contents of / etc/issue are displayed in front of the login prompt, while the contents of / etc/motd are displayed after the user successfully logs in to the system.
Modify the pre-login display message:
The code is as follows:
# vi / etc/issue
# vi / etc/issue.net
Custom 10.04.2 LTS\ n\ l
The meaning of each code in issue:
\ d Local time date
\ l display which terminal interface
\ m display hardware level (i386 Universe i486 Universe i586 Universe i686...)
\ nShow host network name
\ o display domain name
\ r operating system version (equivalent to uname-r)
\ t display local time
\ s operating system name
\ v operating system version.
You can make your favorite login information by modifying / etc/issue content. Also note here that there is a / etc/issue.net in addition to / etc/issue. This is provided to telnet, the process login program. When we use telnet to connect to the host, the login screen of the host will show / etc/issue.net instead of / etc/issue.
The message is displayed after login:
The code is as follows:
# vi / var/run/motd
Welcome to Ubuntu!
There is a lot of system information shown here, how can it be obtained and updated?
Ubuntu is different from other linux, directly modify / etc/motd file after re-login invalid. Because here / etc/motd is a symbolic link to / var/run/motd, it should be a generated file after startup. In version 10.04, the generated script is found in the directory / etc/update-motd.d/, and the files with serial numbers are, including 00rel header.20 CPULI checker, 90-updates-available, 98LV rebootLite 10Helift textmat 50LTRALATEL Sysinfoe91LFO release-upgrade,99-footer. Modify these files to get the results you want.
After modification, use:
The code is as follows:
Sudo run-parts / etc/update-motd.d
If you execute it, you will see the effect immediately without having to log out repeatedly.
Thank you for your reading, the above is the content of "how to modify the login information of the Ubuntu system". After the study of this article, I believe you have a deeper understanding of how to modify the login information of the Ubuntu system. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.