which command can show the result of the linux you are using?
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.
Many distros (even Slackware) nowadays have the file /etc/os-release for this purpose, with information about distro, version and even addresses for support.
You can use "uname" command with -a option, it stands for "Unix name" & I hope it will work on all Unix based distro available.
Code:
example% uname -a
At least on SLackware 13.37 uname -a does not show the distro:
Code:
c@CW9:~$ uname -a
Linux CW9 2.6.37.6-c1 #1 Wed Jun 20 10:48:32 BST 2012 i686 Intel(R) Atom(TM) CPU N450 @ 1.66GHz GenuineIntel GNU/Linux
There is no single technique that works on all distros. The rkhunter shellscript function rkh_dat_get_os_info is a good example of what is required. Available via http://rkhunter.cvs.sourceforge.net/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.