How to check the Ubuntu version from the command line

Based on Debian, Ubuntu is an open-source and free software-based Linux system. All ubuntu versions may run alone or on a virtual machine on the PC. Ubuntu is a popular cloud-based operating system with OpenStack support. The default desktop of Ubuntu is GNOME.

GNOME is a desktop environment – in plain terms, it is an operating system’s graphical interface (many OSes use GNOME as their graphical interface). GNOME has many components, including support libraries, window/display managers and one composer, and various GNOME applications.

GNOME is free and open-source software. It is mostly aimed towards Linux computers but may be run on BSD. We will be discussing multiple ways to check your Ubuntu version, both by CLI (Command Line Interface) and GUI (Graphical User Interface). Let’s begin!

What is Command-Line?

Earlier, when GUI was not introduced, commands were typed into the command-line interface to communicate with the system’s OS.

In the command-line interface, the user interacts with the operating system in text commands. The commands are then executed by the kernel of the operating system for further processing. Using a command-line interface is preferred over GUI as it adds more efficiency and speed to the execution of the instructions. Besides, while working with virtual machines, one needs to interact with the machine using CLI instead of GUI.

Checking Version of Ubuntu Using the Standard cat Command

cat command in Linux is used to display the content of one or more files present in your machine. It can also be used to create new files and add content to them at creation. To view a file content using the cat command, use the below syntax:

cat file_name

Type following command on the terminal:

$ cat /etc/os-release

Checking Version Using lsb_release Utility

The lsb_release utility displays the LSB (Linux Standard Base) information about the Linux distribution.

A lsb_release tool that provides LSB (Linux Standard Basis) information for the Linux distribution is the best technique for checking your Ubuntu release.

Checking Version Using hostnamectl Command

Another way to check the Ubuntu version is by the following command:

hostnamectl

You may search and modify the hostname and associated parameters with the hostnamectl command. One can also display the distribution name and kernel version of their Linux.

Checking the Ubuntu Version Using GUI

Go to the settings and click on the About button. The following tab will get displayed. You may check the GNOME version as highlighted in the sample image.

Conclusion

We have seen multiple ways to check the version of your Ubuntu OS. It is good to verify the version of Ubuntu to fix and implement for security and performance reasons. Many packages are not compatible with your current OS. Checking the status of the OS version will thus assist you in upgrading your OS and install the required packages to another version. Using Command Line Interface to check the version of your OS is quite helpful when working with virtual machines where you have most of the access to the command line interface and not the GUI.

56 thoughts on “How to check the Ubuntu version from the command line”

  1. Fantastic post however I was wondering if you could write a litte more on this topic?
    I’d be very grateful if you could elaborate a little bit further.
    Thanks!

  2. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest
    twitter updates. I’ve been looking for a plug-in like this for quite some time and
    was hoping maybe you would have some experience with something like
    this. Please let me know if you run into anything.
    I truly enjoy reading your blog and I look forward to your new updates.

  3. Fantastic goods from you, man. I have understand your stuff previous to and you are just too wonderful.
    I really like what you’ve acquired here, really like what you are saying
    and the way in which you say it. You make it entertaining and you still take care of to keep it
    wise. I can’t wait to read much more from you. This is really a
    terrific web site.

  4. Spot on with this write-up, I honestly feel this amazing site needs a lot more
    attention. I’ll probably be returning to read more, thanks for the advice!

    My web site – Hedofirm 360 Male Enhancement Reviews – India,

  5. Hey! I could have sworn I’ve been to this site before but after
    browsing through some of the post I realized it’s new to me.
    Anyways, I’m definitely glad I found it and I’ll be bookmarking and checking back frequently!

  6. Spot on with this write-up, I truly believe
    that this amazing site needs far more attention. I’ll probably be
    returning to read through more, thanks for the information!

  7. Thanks for sharing superb informations. Your web site is very cool.
    I am impressed by the details that you’ve on this web site.
    It reveals how nicely you perceive this subject.

    Bookmarked this web page, will come back for more articles.
    You, my friend, ROCK! I found simply the information I already searched all over the place and simply couldn’t come
    across. What a perfect website.

    Feel free to visit my web blog A1 Keto

  8. Howdy very nice site!! Guy .. Beautiful .. Amazing .. I will bookmark your
    web site and take the feeds also? I am glad to seek out so many useful info right here within the put up, we’d like develop more techniques on this regard, thanks for sharing.
    . . . . .

  9. I’m really inspired with your writing talents as smartly as
    with the format on your blog. Is that this a paid topic or did you customize it your self?
    Anyway keep up the nice high quality writing, it is uncommon to
    see a great blog like this one today.

    Here is my web blog – Keto Lean X Review

  10. What’s up everybody, here every person is sharing such knowledge, therefore it’s nice to read this website, and I used to
    pay a visit this website daily.

  11. First off I want to say great blog! I had a quick
    question that I’d like to ask if you don’t mind.
    I was interested to know how you center yourself and clear your head
    prior to writing. I’ve had a hard time clearing my
    thoughts in getting my thoughts out there. I do take pleasure in writing but it
    just seems like the first 10 to 15 minutes are usually wasted simply just trying to figure out how to begin. Any suggestions
    or tips? Thanks!

  12. What i do not understood is if truth be told how you are now not really a lot more neatly-liked than you might be now.
    You are so intelligent. You understand therefore considerably in relation to this subject, produced
    me for my part consider it from numerous various angles.
    Its like men and women don’t seem to be interested until it is
    something to accomplish with Woman gaga! Your individual stuffs outstanding.

    All the time deal with it up!

    Also visit my web page – Evo Naturals Hemp Gummy Bears Reviews – http://www.meteoritegarden.com/

  13. Hiya very cool site!! Man .. Excellent .. Superb ..
    I will bookmark your website and take the feeds additionally?I’m happy to find
    a lot of helpful information here within the submit, we want work out more strategies on this regard, thanks for sharing.

    Feel free to visit my web site … Imarais Beauty Glow

  14. Hi, Neat post. There is an issue together with your website in internet explorer,
    might check this? IE still is the market chief and
    a big section of people will miss your magnificent writing because
    of this problem.

  15. I don’t even understand how I stopped up here, but I believed this publish was once great.

    I don’t realize who you’re however certainly you’re going to a famous blogger for those who
    aren’t already. Cheers!

  16. Hi there i am kavin, its my first occasion to commenting anywhere, when i
    read this piece of writing i thought i could also make comment due to this
    brilliant article.

  17. Great goods from you, man. I have understand your stuff previous to and you are just too great.
    I really like what you’ve acquired here, really like what you are stating and the way in which you say it.
    You make it entertaining and you still take care of to keep
    it wise. I cant wait to read far more from you.
    This is actually a great web site.

  18. Thаnks for a marvelous posting! I certainly enjoyhed reading it, you might be a great author.
    I will mmake certain tto bookmаrk y᧐ur blоg ɑnd wilⅼ eventually come back very
    soon. I ᴡant to encoսrage youu to continue your great posts, have a nice mоrning!

  19. Thank you for some other excellent article. Where else may anyone get that type of info in such a perfect method of writing?
    I’ve a presentation subsequent week, and I’m
    on the search for such info.

    Here is my web site: Max Keto Fuel Reviews (Jacquie)

  20. Yesterday, while I was at work, my cousin stole my iphone and tested to see if it can survive a thirty
    foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views.
    I know this is completely off topic but I had to
    share it with someone!

    Feel free to surf to my web site :: Tundra Breeze

  21. I almost never drop comments, but after reading a bunch
    of remarks on How To Check The Ubuntu Version From The Command Line – Ubuntu-Server.com.
    I actually do have some questions for you if you do not mind.
    Could it be only me or does it look like a few of these responses appear as if they are written by brain dead people?
    😛 And, if you are posting at other online sites, I would like to follow anything new you have to post.
    Would you post a list of every one of all your social community pages like your linkedin profile, Facebook page or twitter
    feed?

    My webpage: Spore Mens Vitality Mix

  22. Its like you read my mind! You appear to know a lot
    about this, like you wrote the book in it
    or something. I think that you could do with a few
    pics to drive the message home a little bit, but instead of that, this is great blog.

    An excellent read. I’ll certainly be back.

Leave a Comment

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