The pre-login message you see at the console screen is useful in multi-user Linux environment for various purposes. It can contain important messages for users to be aware of when they are logging in. In Linux, the pre-login message to be shown at the console screen is specified in /etc/issue file.
/etc/issue is a plain text file which can optionally contain escape sequences for various built-in information.
The following is an example of /etc/issue file.
This is a test message. Current date: \d Current time: \t System name: \s Architecture: \m OS build info: \v Hostname: \n Kernel: \r Number of logged-in users: \u
Once you edit /etc/issue as above, you will see the following message at the login console.
Subscribe to Ask Xmodulo
Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.