See Beyond Linux From Scratch: Customizing your Logon with /etc/issueBLFS wrote:\n Insert the nodename of the machine, also known as the hostname.
\l Insert the name of the current tty line.
cat /etc/issue
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 3
- Posts: 154
- Joined: Wed Apr 21, 2021 10:34 pm
Re: cat /etc/issue
Special character sequences:
-
- Level 3
- Posts: 154
- Joined: Wed Apr 21, 2021 10:34 pm
Re: cat /etc/issue
From
To get version information, you may have more luck with something like
Also, note the important difference between
man issue
The commandissue(5) wrote:/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 the getty-type program employed on the system.
cat /etc/issue
may provide some version information, but the main purpose of the /etc/issue
file appears to be to provide a message which will be interpreted and printed by a getty-type program on the console.To get version information, you may have more luck with something like
uname --all
or lsb_release --all
. Their man
pages describe other available options.Also, note the important difference between
\
and /
when used in character sequences.- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: cat /etc/issue
Indeed -Wakatakakage wrote: ⤴Mon May 16, 2022 1:22 am Fromman issue
issue(5) wrote:/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 the getty-type program employed on the system.
/etc/issue
defines the text at the top of a TTY (e.g when you Ctrl-Alt-F1)There are a number of files you can
cat
to get some version info - e.g Code: Select all
cat /etc/os-release
Code: Select all
cat /etc/linuxmint/info
Code: Select all
inxi -Sxxx
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.