Command line option to find out the version of Ubuntu – lsb_release command

Hi, it’s simple. You can find out the version details simply from the command line. Here I am explaining the ways to find out the version of OS in your server/system.

Method I
You may use the “lsb_release” along with the switch “a”, see the example below:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:        12.04
Codename:       precise

Method II
The version details are aslo stored in the “/etc/issue” file, you may also cat this file, see the example below;

# cat /etc/issue
Ubuntu 12.04 LTS \n \l

That’s it. 🙂

How to Install Webmin on Ubuntu 10.04 painlessly

Post navigation

Arunlal A

Engineer. Linux enthusiast. Traveller. DevOps learner and practitioner. I enjoy working with Linux, DevOps, automation, and technology while exploring new places along the way. I use this space to share my experiences, learnings, experiments, and things I discover along the journey. Whether you're a seasoned DevOps professional or just getting started, let's connect, learn, and grow together. Happy coding, automating, and deploying!

Leave a Reply

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