$ cat /etc/issue
Debian GNU/Linux 8 \n \l
\l
does not seem to mean carriage return and newline here.
What does \l
mean in /etc/issue
?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityThe escapes in /etc/issue
are getty
escapes, not the typical C-style or shell-style escapes. In particular:
\n
inserts the hostname (“nodename”)\l
inserts the tty lineWith the default /etc/issue
you have, you’ll see
Debian GNU/Linux 8 hostname tty1
or something similar.
The available escape sequences are documented in the agetty(8)
manpage (amongst others). If you want to use other escape sequences, you should check which getty
implementation you’re using and read its documentation — some implementations support more escapes than others. \n
and \l
are widely supported.