Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Note that CLI means "Command Line Interface," which is what you can see when you open a "terminal" application from, usually, the "System" menu item, or, for some systems, when you "right click" on the screen.
Almost every distribution will announce its name when you first boot the system. Perhaps your attention was distracted while your system was booting, and you missed the message.
Almost every distribution will announce its name ...
...and, as a consequence of this, if you type 'dmesg' into a terminal, it will (usually? always?) appear early in the list of messages that are printed out. If even this overfills your terminal buffer, you could try:
Code:
dmesg | grep -i version
which really ought to work on just about any distro (but is likely to report a few lines from other drivers which also report a version during initialisation).
The buffer gets updated quickly so this works only right after (re)boot.
Quote:
Originally Posted by Anisha Kaul
or cat /etc/issue
/etc/issue.* are more dynamic than what uname, /etc/*release* or lsb_release return and may be replaced on hosts that need to comply with certain regulations.
Quote:
Originally Posted by repo
Code:
cat /etc/[A-Za-z]*[_-][rv]e[lr]*
Way minor nit: errors wrt encountering directories may confuse some so:
/etc/issue.* are more dynamic than what uname, /etc/*release* or lsb_release return and may be replaced on hosts that need to comply with certain regulations.
That was informative, thanks, but the following didn't work on Slackware 13.1 from root and uname doesn't return the "distribution name".
Code:
12:01:36 Sun Apr 03 root ~ cat /etc/*release*
cat: /etc/*release*: No such file or directory
12:01:41 Sun Apr 03 root ~ lsb_release
bash: lsb_release: command not found
12:49:46 Sun Apr 03 root ~ cat /etc/*{release,version,VERSION,Version}
cat: /etc/*release: No such file or directory
Slackware 13.1.0
cat: /etc/*VERSION: No such file or directory
cat: /etc/*Version: No such file or directory
12:50:28 Sun Apr 03 root ~
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.