Nick Bailuc Asked: 2012-06-15 09:33:13 +0800 CST2012-06-15 09:33:13 +0800 CST 2012-06-15 09:33:13 +0800 CST What terminal command checks the Ubuntu version [duplicate] 772 What terminal command tells the version of Ubuntu. command-line 2 Answers Voted Best Answer carnendil 2012-06-15T11:24:08+08:002012-06-15T11:24:08+08:00 For the description and the release number including the OS name, run: $ lsb_release -d Description: Ubuntu 12.04 LTS Just for the the codename, use: $ lsb_release -c Codebase: precise For the release number only, use: $ lsb_release -r Release: 12.04 For all lsb version details, use: $ lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise SirCharlo 2012-06-15T09:35:36+08:002012-06-15T09:35:36+08:00 This should give you what you want: cat /etc/lsb-release
For the description and the release number including the OS name, run:
Just for the the codename, use:
For the release number only, use:
For all lsb version details, use:
This should give you what you want: