/etc/issueis a text file which contains a message or system identification to be printed before the login prompt.
Regenerate the login message each time the system reboots
/etc/rc.localfile and insert just above the line ...
#File: /etc/rc.local ... touch /var/lock/subsys/local
... the following code (which is the message you want to show on top of the login prompt).
echo "Welcome to \n" > /etc/issue echo "All access to this system is monitored" >> /etc/issue echo "Unauthorized access is prohibited" >> /etc/issue echo >> /etc/issue echo "Last reboot completed at $(/bin/date)" >> /etc/issue
Save and quit the file. That is it. Now each time you reboot, you will get your message shown on the login console.
The login task is managed by a daemon called
mingetty. Each time the you logout or reboot your machine,
mingettyreads the message in the file
/etc/issueand displays it just above the login prompt in the console. In the above example,
mingettyexpands the character '\n' to your machine's hostname.
Escape sequences you can use in your /etc/issue file
mingettyrecognizes the following escape sequences which might be embedded in the
\d - Insert current day (local time)
\l - Insert line on which mingetty is running
\m - Machine architecture (uname -m)
\n - Machine's network node hostname (uname -n)
\o - Domain name
\r - Operating system release (uname -r)
\t - Insert current time (local time)
\s - Operating system name
\U - The number of users currently logged in.
\v - Operating system version.
If you have booted directly into GUI mode,
you can press
Ctrl + Alt + F1 to view your virtual console.