Debian Admin

Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips

  • RSS Subscribe

    subscribe to the Debian Admin RSS feed
  • Sponsors



  • Categories

  • Sponsors

  • Support DebianAdmin

    Amount $:
    Website(Optional):


  • Meta

  • Archives



Find which Debian or ubuntu Linux Version you are running

Posted by Admin on September 30th, 2006

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

There are times debian or ubuntu users and admins want to find which version of debian and ubuntu linux version is running on their machines.This is very useful for those who is helping their customers and they want to know which version they are running and if you took over new system admin job you want to know which version is running on your servers or desktops.

Find or identify which version of Debian Linux you are running

This can be checked in /etc/debian_version file

Find or identify which version of ubuntu Linux you are running

You can find in different ways in ubuntu

Solution 1

cat /etc/issue

The file /etc/issue holds the version of Ubuntu installed on your system

Solution 2

lsb_release -a

or

cat /etc/lsb-release

  • Share/Bookmark

Random Posts

6 Responses to “Find which Debian or ubuntu Linux Version you are running”

  1. Darshak Says:

    Not sure if it always works, but Firefox’s default home page contains a welcome message with the version number.

  2. Ionut Says:

    Firefox’s About dialog also contains the operating system:
    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11

  3. Felipe Says:

    I’ve found much better the firefox way rather than the console one.

    While the /etc/debian_version file just says : “testing/unstable”

    the other one gives me a lot of info about my OS.

  4. Darin Says:

    If you just need the version number (for scripting, etc), you can do something like this:

    VERSION=`lsb_release -sd | cut -c 8-`
    echo Configuring for Ubuntu ${VERSION}…

  5. Dragon Slayer Says:

    Or you could run this
    http://programs.rcrnet.net/#version

  6. labilbe Says:

    Thank you!
    Exactly what I needed.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>