Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
How can I tell what version, flavor or build is running on a device.
I looked /usr/lib/dv and found no entries. Not sure where else to look for this info.
Click here to see the post LQ members have rated as the most helpful post in this thread.
How can you not know what distro you're running? In most distros there's something like
/etc/slackware-version
in /etc. A distro's just a packager, so there's no system stuff that could tell you that. Unless you're running Mandrake and do 'ls /bin/*drake' or whatever.
well i m surprised if this is just the question of just seeing what distro u r running then try telneting to that machine and before login u can have enough info u want??
There is really no way to define which "version" of Linux is running on your box. The uname command is the closest thing to it, which will tell you which version of the *kernel* is running.
As for which distro, it would hard to believe that you wouldn't know what you installed on your own PC. Keep in mind that a distro is simply a kernel plus a set of packages that the distro creator decided should be included. Even in the case of a stock Redhat, Mandrake, Slack, Debian, or whatever installation, if you decided on your own to install various other packages that were not part of that initial installation, would it still be a "Redhat" or "Slack" installation? That's debatable. -- J.W.
I know this is an ancient thread, but I screwed up my mail server's configuration and couldn't remember what version of Debian it was running. Google led me here. The answer for Debian is that it stores it's version number in /etc/debian_version, so type:
Code:
less /etc/debian_version
If you don't have the file /etc/debian_version then you're probably not running Debian.
Also, I can tell you one way you can forget what distro you have installed. When I switched my laptop from Windows to Linux a year or two ago, I played around with a lot of distros before I settled on one. Then I didn't have to mess with the installation for a long time, and I found when someone asked me what distro I was running, I could no longer remember whether it was Debian or Ubuntu. I was pretty sure it was Ubuntu, but another WLUG member clued me in that it must be Debian because I was running IceWeasel.
Not a goofy question at all. I just got an Eee PC and knew it's runs Xandros but didn't know which version of Debian it's based on. This would be useful when searching for repos.
For the record, I looked in /etc/issue, as maanga mentioned, and found it's Debian 4.0 (etch).
As mentioned in maanga's link, /proc/version returned even more specific info: Debian 4.1.1-21.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.