Q. How can I configure or change the Virtual Console login to display a pre-login message?
A. 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.
Just open file /etc/issue and change the text as per your requirements.
Procedure to change /etc/issue - pre login file
Login as the root user. Open a file
# vi /etc/issue
Append new text as follows:
Welcome to nixCraft Labs!
Today is \d \t @ \n
Save and close the file. \d, \t or \n will expand as follows on run time.
/etc/issue - escape code
The issue-file (/etc/issue or the file set with 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 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. i486
- \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.
See also
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 6 comments… read them below or add one }
can i please get a way to modify the appearences on linux?
any thing related to changing the effects of the icons ..changing the mouse pointer colour..etc?
You are talking about the GUI (graphical user interface) and that depends on the distro you are using. If you are using Ubuntu (with gnome) you can play with compiz to change how the mouse and windows, and all that stuff behaves, if you are in a distro that uses kde, like kubuntu, slackware, etc you will have to look at kde window manager. Anyway read about window managers.
That great
I am newly using linux programming. can anyone help me out of a program
Write a shell script which gets executed the moment user login and should display message GOOD MORNING/ GOOD EVENING etc depending upon the time the user logs in.
shell script which gets executed the moment user login and should display message GOOD MORNING/ GOOD EVENING etc depending upon the time the user logs in.
I have repeatedly vi’d /etc/issue and changed the /ect/ssh/sshd_config files to show what banner to display and what path the banner is in. Argh..still nothing shows up except
“CentOS 6.2
Kernel /r /n /m”
Drivin me nutz.
I also tried /etc/issue.net
What am I doin wrong.
I have no network connectivigy and gdm is not installed. Can’t yum it.
jade