Now on ScienceBlogs: The Lights Stay On Inside a Black Hole!

Seed Media Group

Collective Imagination

Greg Laden's Blog

Evolution, Life Sciences, Science Education, Human Evolution, and Stuff

Recent Comments

Profile


Welcome to Greg Laden's Blog.




Nature Blog Network



Search

Join the best atheist themed blogroll!

Archives

Recent Posts

« There is not much hope to free Spirit on Monday | Main | Honey Badger vs. Cobra »

What Linux Distro and Version am I using????

Category: Linuxone-liners
Posted on: November 14, 2009 1:45 PM, by Greg Laden

In the old days, you could just use the "help" menu item to figure this out (drilling down to "about") but now there is so much "helpful" crap in the dialog that opens when you do so, that it has become much less helpful.

So just open a command line and cause the contents of the files that contain your release information to be fed to standard output.

i.e., type:

cat /etc/*-release

Share this: Stumbleupon Reddit Email + More

TrackBacks

TrackBack URL for this entry: http://scienceblogs.com/mt/pings/124731

Comments

1

Hey, cool. I think it's more for a program to learn about the system it's installed on, though. I don't really find myself in front of random Linux systems too often. But this definitely goes in the toolbox alongside "uname -a".

Posted by: Nemo | November 14, 2009 2:52 PM

2

There's a better way, command lsb_release which should be in any LSB-compatible (LSB stands for Linux Standards Base) distribution.

Particularly useful is "lsb_release -a" command:

cyberax@lw1:~/work/app$ lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:qt4-3.1-amd64:qt4-3.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic

Posted by: Alex Besogonov | November 14, 2009 3:02 PM

3

cat /etc/*-release

does not work with Debian lenny

the file is /etc/debian_version

Posted by: alex | November 14, 2009 3:07 PM

4

In Ubuntu, you can also go to System->About Ubuntu. This will bring up a help page with the current version of your operating system, its release date, how long the current version will be supported, a description of the Ubuntu project, and some helpful links.

Posted by: BruceH | November 14, 2009 4:11 PM

5


Try installing acpi.

sudo apt-get install acpi

When you run it, you'll get

# acpi -V

Battery 0: Full, 100%
Battery 0: design capacity 4752 mAh, last full capacity 4752 mAh = 100%
AC Adapter 0: on-line
Thermal 0: ok, 55.0 degrees C
Cooling 0: LCD 0 of 10
Cooling 1: Processor 0 of 10
Cooling 2: Processor 0 of 10

This is very useful if your machine runs hot on occasion.

Posted by: mikey.duhhh | November 14, 2009 4:45 PM

6

There is a feature that Apple used to have on the Classic MacOS (I don't know if it exists on OS X, though there seems to be something of the sort still in there) called the Gestalt Manager that would allow you to inquire about the computer environment. It was extremely useful for certain purposes, so much so that Apple actually included it in the standard libraries for Mac development so it would be available on System 6. It would be nice if Linux had something like that, but I don't think the development model is conducive to it, and in any case I don't know how Gestalt handled shared libraries after Apple started using them all over the place.

Posted by: Brian X | November 15, 2009 2:13 AM

Post a Comment

(Email is required for authentication purposes only. On some blogs, comments are moderated for spam, so your comment may not appear immediately.)





ScienceBlogs

Search ScienceBlogs:

Go to:

Advertisement
Enter to win a free copy of The Monty Hall Problem
Visit the Collective Imagination blog
Advertisement
Collective Imagination

© 2006-2009 Seed Media Group LLC. ScienceBlogs is a registered trademark of Seed Media Group. All rights reserved.

Sites by Seed Media Group: Seed Media Group | ScienceBlogs | SEEDMAGAZINE.COM