Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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.
Rather than hunting through the log files and directory structures for hints, is there an easy way (command, script, etc.) to determine which distribution of Linux you are currently running at the shell prompt?
'uname' does not always give distro information. A lot of kernel versions have a suffix that gives this away (i.e. Mandrake == -mdk), but not the distro I'm trying to figure out. It is possible that this is a vanilla linux kernel customized by whoever set it up, but that's something I'd like to know for sure before I start making assumptions.
Yeah, the file in /etc will tell you a bit. I notice that a lot of distros based on debian will have a debian-release file and it will say unstable or testing or whatever their philosophy is. It is up to you to figure out if it is mepis or knoppix or whatever. I notice the newest xandros calls the file lsb-release and is quite specific.
`cat /etc/*release` should get you somewhere, at least you know the base.
That seems to be the best way besides 'uname'. Unfortunately, this distro I've inherited seems to be built from scratch and custom stripped. I know this company used to base it off of Red-Hat, then Slackware, and possibly Debian, but it appears they now base it off of vanilla Linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.