cat /etc/issue

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Wakatakakage
Level 3
Level 3
Posts: 154
Joined: Wed Apr 21, 2021 10:34 pm

Re: cat /etc/issue

Post by Wakatakakage »

Special character sequences:
BLFS wrote:\n Insert the nodename of the machine, also known as the hostname.
\l Insert the name of the current tty line.
See Beyond Linux From Scratch: Customizing your Logon with /etc/issue
Wakatakakage
Level 3
Level 3
Posts: 154
Joined: Wed Apr 21, 2021 10:34 pm

Re: cat /etc/issue

Post by Wakatakakage »

From man 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.
The command 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.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: cat /etc/issue

Post by smurphos »

Wakatakakage wrote: Mon May 16, 2022 1:22 am From man 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.
Indeed - /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
or

Code: Select all

cat /etc/linuxmint/info
But best version info comes from inxi (as it includes pretty much everything of any importance)

Code: Select all

inxi -Sxxx
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Locked

Return to “Software & Applications”