Check your Ubuntu Version – Command Line

Number of Views : 1234

I often ssh into my home linux server or my remote Machines. Recently I could not remember what flavor (version) of ubuntu I was running. Since I don’t use the UI on the server I only had the command line to use. I quickly found a way to show what version you are running. I thought it was interesting that there was not a little command that would do this, in my mind it would be “showversion”. However, that command does not exist. If you want to see what version you are running of Ubuntu you issue:

lsb_release -a

After running the code you are able to see the version under release section.

Command Line Version

Command Line Version

If you just run the “lsb_release” command you will get a message that states “No LSB modules are available.”. The ‘-a’ flag specifices all options.

There is another command you can run. cat /etc/issue.net This will also give you the version.

cat /etc/issue.net
cat /etc/issue.net

cat /etc/issue.net

To see you version in the gui you can use this link as reference
https://help.ubuntu.com/community/CheckingYourUbuntuVersion

Leave a Reply

Your email address will not be published. Required fields are marked *