0

This question already has an answer here:

How do I figure out what version of Ubuntu I have? Is there a command I can use in terminal? Thank you for any help. I am an extreme newbie.

marked as duplicate by Pilot6, Videonauth, Byte Commander, heemayl, Mark Kirby Jul 3 '16 at 16:03

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.

  • cat /etc/lsb-release – Pilot6 Jul 3 '16 at 15:51
1

You can use cat /etc/lsb-release

natasha@natasha-M51SE:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
  • @elektron10 If this answer worked for you, please accept it with the checkmark on the left to thank the user and let others know, this was to correct solution. – Mark Kirby Jul 3 '16 at 16:04
0

try lsb_release -a. Example:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04 LTS
Release:    16.04
Codename:   xenial
  • This command is correct but gives too much information in LSB Version. – Pilot6 Jul 3 '16 at 15:54

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