Home > Linux > How To Find Your Ubuntu or Kernel Version

How To Find Your Ubuntu or Kernel Version

To make up for not blogging over the past few weeks I’ve got a few things up my sleeve here. I definitely want to get back into my old habit so I’ll just dive right in.

This tutorial will outline a few methods of finding your installed Ubuntu version or kernel version. These can be useful if you ever need to troubleshoot a problem or need more information for a bug submission.

The first method you can use is a GUI method to see what version you have installed. Personally I think it could be made a bit more prominent, but that isn’t my call. To find the version using the GUI method simply do the following:

System > About Ubuntu

The resulting window will show some main contents and then thank you for your interest in version.

ubuntu version from about page “Thank you for your interest in Ubuntu 6.10 – the Edgy Eft – released in October 2006.”

The other method to find your version is a command line method. There are two commands you can use:

cat /etc/issue

or you can use

cat /etc/lsb-release

…and finally to find your kernel version and a few more details about your machine use the uname command which, per the man pages, shows system information. Examples:

uname -a : print all information

uname -r : print the kernel release

uname -v : print the kernel version

uname -o : print the operating system

see man uname for more details on using the uname… and now you should be able to find out more about your machine, report better bugs and continue to make Ubuntu even better!

Categories: Linux Tags: , ,
  1. January 27th, 2007 at 09:43 | #1

    I’d just like to add that the lsb_release command does the same as cat /etc/lsb-release, with some added features like formatting and showing only the stuff you need.

    “lsb_release -a” – will show you all information about your Ubuntu version.

    “lsb_release -h” – will show you other options that you can use with the lsb_release command, like showing only the codename, or the release nubmer, etc.

    Btw, great job on providing these tutorials. Now that it’s on the Planet, I’m sure a lot of people will find these extra useful.

  2. Jonas
    January 27th, 2007 at 17:07 | #2

    In addition to the above, I believe that lsb_release is actually a part of LSB, whereas /etc/lsb-release is not.

  3. Han
    February 13th, 2007 at 19:49 | #3

    Thanks for the great information!

    Just do not know what “lsb” in “lsb-release” stands for.

  4. November 21st, 2007 at 07:04 | #4

    “lsb” in “lsb-release” stands for.

    Linux Standard Base

    try:

    man lsb_release

  5. Ravindra Tripathi
    July 9th, 2008 at 22:11 | #5

    How to find out which version of Ubuntu is installed, 32 bit or 64 bit?

  6. Ravindra Tripathi
    July 9th, 2008 at 22:12 | #6

    I mean to say, how to find out whether the Ubuntu installed on my system is a 32bit or a 64bit version?

  7. Clint
    October 10th, 2008 at 17:31 | #7

    lsb-release does not work for me (I get “bash: lsb-release: command not found”). But if I do “sudo apt-get install lsb-release” it says it is already installed and up to date. Weird.

  8. kelly
    October 24th, 2008 at 04:27 | #8

    so good- so easy-

    thank you

  9. Russianspi
    December 1st, 2008 at 15:10 | #9

    Clint – you need to use lsb_release instead of lsb-release . The command will not work with a dash, it needs an underscore.

  10. Ziphyre
    December 13th, 2008 at 00:53 | #10

    Ravindra :
    Look for a /lib64 folder. Maybe that can help.

  11. rodney
    December 14th, 2008 at 09:56 | #11

    After you find the right command, you won’t remember it. It’s shameful there is no “version” command in linux.
    Try http://programs.rcrnet.net/#version

  12. zendance
    December 24th, 2008 at 19:10 | #12

    That version package is awesome!
    I just installed it. It told me I was running 32-bit and even gave me help text so I could tell whether I was running 64-bit or 32-bit. This needs to be part of the base Ubuntu install.

  13. peperoni
    May 24th, 2009 at 22:32 | #13

    These developeres have such strange ideas!!!

    Linux standard base release: lsb_release

    instead of distro, version, linux-version, linux-distro

    and then in the description:

    lsb_release – print distribution-specific information

    OH my!!!

  14. July 22nd, 2009 at 22:16 | #14

    Thanks. That was just what I was looking for. I am new to Ubuntu and never thought I would be a Linux user.

    I tried "lsb_release -a" but had to capitalize change -a to -A for it to work :)

  15. Luca
    December 4th, 2009 at 12:47 | #15

    Just for info, another way to find out if you're 32 or 64bit is

    uname -m

    Cheers!

  16. Luca
    December 4th, 2009 at 12:47 | #16

    Just for info, another way to find out if you're 32 or 64bit is

    uname -m

    Cheers!

  17. spuffler
    December 30th, 2009 at 01:43 | #17

    I'd rather tell Synaptic/whatever to stop storing kernels from 5 revisions ago. Actually, no, I meant to say: "Who thinks I need to have this as a default setting under Ubuntu Netbook Remix 9.10?".

  18. Deets
    January 7th, 2010 at 06:25 | #18

    Very good info, thanks!

  19. May 26th, 2010 at 20:47 | #19

    Thank you.it work

  20. Azoor
    June 17th, 2010 at 00:39 | #20

    $sudo lshw

    it will show all about your System…
    i mean OS Kernel version..
    OS bit version..
    And CPU bit version…

  21. Rodney
    July 16th, 2010 at 23:39 | #21

    zendance :That version package is awesome! I just installed it. It told me I was running 32-bit and even gave me help text so I could tell whether I was running 64-bit or 32-bit. This needs to be part of the base Ubuntu install.

    Old reply, but thanks.. :)
    BTW, it still works on Newer versions of ubuntu like lucid.

  22. Alex
    July 17th, 2010 at 01:36 | #22

    Thx for all informations coz its really helped me..

  23. Paul
    September 13th, 2010 at 09:32 | #23

    For others (I know old post), but in response to Rodney: look up alias in shell commands. You can make almost any command you want, even overwrite system command names. I use alias for fun things like showdir {ls -al | grep drw} …. less typing (yes I may forget the switches, but for me it’s about getting it done quickly …) You could alias lsb_release to “showver” or “ver” or alias lshw to “fullver”.

  24. yogesh sapre
    October 1st, 2010 at 04:18 | #24

    hey its nice

    its help me alot….

  25. November 9th, 2010 at 18:48 | #25

    lsb sounds like some kind of a drug

  26. laringo
    January 17th, 2011 at 10:39 | #26

    Another way, from 2 starting points:

    a) From the web browser’s address bar: ghelp:about-ubuntu
    b) From the run dialog (Alt + F2): gnome-help ghelp:about-ubuntu

    Both of them have the same effect as using the Main menu->System->About Ubuntu:

    They open the “Display application and GNOME system help” in a page giving the same information as https://help.ubuntu.com/xxxxxx/about-ubuntu/C/index.html (xxxxxx may be 9.10 or 10.04 or 10.10 …….) (in the language in which you are using Ubuntu).

    My question is: in which folder of the filesystem is this help page stored?

  27. laringo
    January 17th, 2011 at 10:57 | #27

    The answer to my question:
    /usr/share/gnome/help-langpack/about-ubuntu

    … then the folder of the language your Ubuntu uses
    … then open the file about-ubuntu.xml

  28. husaragi
    February 14th, 2011 at 08:19 | #28

    i think im starting to hate ubuntu. why cant we just refer to releases by version number….theres really not much that annoys me more than looking for help with ubuntu and finding posts like “got it working great in jaunty”.

    please….wtf version is jaunty? i dont keep a running tab in my head to correlate ubuntu versions to their appropriate animal. jfc….this is really…..screw it. im just going back to freebsd.

  29. husaragi
    February 14th, 2011 at 08:21 | #29

    @ Rodney

    seee…my point exactly….lucid? how about newer versions like x.xx so we know wtf youre talking about. stupid naming system.

  30. Cadfikle
    May 6th, 2011 at 03:57 | #30

    @husaragi: in the 1st screenshot you can read both 6.10 and Edgy Eft. More info:
    https://wiki.ubuntu.com/Releases
    http://old-releases.ubuntu.com/releases/
    http://releases.ubuntu.com/

    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    To know if the installed Ubuntu is of 32 or 64 bits:
    uname -m
    If it shows i686 or i386 it means 32 bits.
    If it shows x86_64 it means 64 bits.

    If the CPU is of 32 bits Ubuntu must be of 32 bits.
    If the CPU is of 64 bits it can work in 64 or 32 bits. So we can choose: Ubuntu can be of 32 bits or of 64 bits.

    To know if the CPU is of 32 or 64 bits:
    a) grep -w lm /proc/cpuinfo
    If we see lm in red is of 64 bits. Otherwise is of 32 bits.
    b) sudo lshw | grep “description: CPU” -A 12 | grep width
    It says clearly what we want to know.

  31. Cadfikle
    May 6th, 2011 at 04:41 | #31

    Another way to know if the installed Ubuntu is of 32 or 64 bits:
    getconf LONG_BIT

  32. Ricardo
    May 30th, 2011 at 10:59 | #32

    just type: volname

  33. Hiasop
    June 3rd, 2011 at 13:48 | #33

    volname??

    In the command …
    sudo lshw | grep “description: CPU” -A 12 | grep width
    … the quotation marks have to be vertical so it works.

    Probably they have been converted again in typographic ones. I hope they appear well now (I’m using the HTML code for them: ampersand number sign 34 semicolon):
    sudo lshw | grep "description: CPU" -A 12 | grep width

  34. Delete Ricardo’s message
    June 6th, 2011 at 14:21 | #34

    @administrators: volname has nothing to do with the information of this page. Please remove the comment of Ricardo, and this one. Regards

  35. NB
    June 6th, 2011 at 14:26 | #35

    In the command …
    sudo lshw | grep “description: CPU” -A 12 | grep width

    the quotation marks have to be vertical for it to work.

    Probably this time, using the code for them instead of the directly, ampersand-quot-semicolon, it will appear well:
    sudo lshw | grep "description: CPU" -A 12 | grep width

  36. doktor_no
    July 10th, 2011 at 21:23 | #36

    @rai
    LSB is the abbreviation for: “least significant bit”.
    This abbreviation is well known by each programmer.
    That is the reason why no programmer would think the “lsb_release” command would tell you the current version number. (To be mor specific. No programmer would ever imagin for what the command can ever be used.)
    The programmer who wrote this command must be the exception of the rule I mentioned. At leas he doesn’t care for usability or propper use of abbreviations.
    Kind regards, doktor_no.

  37. hafiz
    August 9th, 2011 at 01:13 | #37

    Hallo,
    I would like to mount Zippyboard to my BB Rev. C4 and try connect ethernet from zippy. So i already installed Ubuntu 10.10 with kernel version 2.6.35 on SD card and boot the BeagleBoard from that SD card and everything just fine. So now, to connect the zippy board to my BeagleBoard i actually need to configure the pin mux setting rite?i read this page.http://elinux.org/BeagleBoardPinMux#Pin_Mux_Cross_Reference_Table.but it seem i dont have this file on ubuntu—>arch/arm/mach-omap2/mux.c..So please if you can help me as this actually my final semester project.thanks a lot

  38. sherry
    January 27th, 2012 at 13:24 | #38

    i have here an asus eeePC 4G and this is the info i got when envoking this command uname -a:
    Linux eeepc-Name 2.6.21.4-eeepc #2 Mon Oct 15 12:49:37 EDT 2007 i686 GNU/Linux

    Here are my concern: i want to upgrade the version, is is upgradable? anybody there can suggest what version is suitable for the said pc? if all the answer is yes, then can u suggest me what site where i can download that certain version and you’d anybody there help me or can share me procedure how to upgrade?

    im looking ahead for all ou favorable replies, thank you and God bless you all as always.

  1. No trackbacks yet.