\ l在/ etc / issue中是什么意思?


18
$ cat /etc/issue
Debian GNU/Linux 8 \n \l

\l 在这里似乎并不意味着回车和换行。

是什么\l意思/etc/issue

Answers:


26

中的转义符/etc/issuegetty转义符,不是典型的C样式或shell样式的转义符。尤其是:

  • \n 插入主机名(“ nodename”)
  • \l 插入tty行

使用默认值/etc/issue,您将看到

Debian GNU/Linux 8 hostname tty1

或类似的东西。

可用的转义序列记录在手册agetty(8)页中(以及其他信息)。如果要使用其他转义序列,则应检查getty使用的实现并阅读其文档-一些实现比其他实现支持更多的转义。\n\l得到广泛支持。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.