Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How can I find the version of Ubuntu that is installed?

At my school we have a couple of laptops with Ubuntu. I want to know what version it is. There is no launch/search bar, and no software center, however terminal was not disabled. I would like to what version it is, so can anyone tell me the command that can check the Ubuntu version.

share|improve this question
add comment

marked as duplicate by fossfreedom Jun 14 '12 at 19:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 33 down vote accepted

This should give you what you want:

cat /etc/lsb-release
share|improve this answer
add comment

... or run

lsb_release -d

which should give you the the description including the OS name ("Ubuntu" on an Ubuntu system) and the release number.

lsb_release -c

will give you just the codename (e.g., "precise" for Ubuntu 12.04 LTS).

For the release number only, use

lsb_release -r

For all lsb version details, use

lsb_release -a

EDIT: Thanks Eliah Kagan.

share|improve this answer
3  
That gives the codename. for the description including the OS name ("Ubuntu" on an Ubuntu system) and the release number, use lsb_release -d. For the release number only, use lsb_release -r. For all available lsb information, use lsb_release -a. –  Eliah Kagan Jun 14 '12 at 19:30
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.