Linux Console Login Screen TTY Change Message

This is all controlled by /etc/issue

You can basically enter anything in there that you like, but there are preset variables that are mentioned at the end of the page that discuss this.

Some examples of /etc/issue:

Centos 7:

\S
Kernel \r on an \m

Ubuntu 16.04:

Ubuntu 16.04.6 LTS \n \l

You can also insert any of the characters below preceded by a blackslash \ and it will insert the relevant information.

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, e.g., i686. 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 kernel, e.g., 2.6.11.12. 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, e.g., the build-date etc.


Tags:

linux, console, login, tty, messagethis, controlled, etc, preset, variables, examples, centos, kernel, ubuntu, lts, insert, characters, preceded, blackslash, relevant, baudrate, operating, architecture, identifier, nodename, hostname, domainname, users, logged, quot, user, os,

Latest Articles

  • Linux Ubuntu Cannot Print Large Images
  • Cannot Print PDF Solution and Howto Resize
  • Linux Console Login Screen TTY Change Message
  • Apache Cannot Start Listening Already on 0.0.0.0
  • MySQL Bash Query to pipe input directly without using heredoc trick
  • CentOS 6 and 7 / RHEL Persistent DHCP Solution
  • Debian Ubuntu Mint rc-local service startup error solution rc-local.service: Failed at step EXEC spawning /etc/rc.local: Exec format error
  • MySQL Cheatsheet Guide and Tutorial
  • bash script kill whois or other command that is running for too long
  • Linux tftp listens on all interfaces and IPs by DEFAULT Security Risk Hole Solution
  • python import docx error
  • Cisco Unified Communications Manager Express Cheatsheet CUCME CME
  • Linux Ubuntu Debian Missing privilege separation directory: /var/run/sshd
  • bash how to count the number of columns or words in a line
  • bash if statement how to test program output without assigning to variable
  • RTNETLINK answers: Network is unreachable
  • Centos 7 how to save iptables rules like Centos 6
  • nfs tuning maximum amount of connections
  • qemu-kvm error "Could not initialize SDL(No available video device) - exiting"
  • Centos 7 tftpd will not work with selinux enabled