{"id":5815,"date":"2024-11-14T04:20:10","date_gmt":"2024-11-13T22:50:10","guid":{"rendered":"https:\/\/www.veeble.com\/kb\/?p=5815"},"modified":"2025-05-05T12:19:05","modified_gmt":"2025-05-05T06:49:05","slug":"how-to-check-your-ubuntu-version","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/how-to-check-your-ubuntu-version\/","title":{"rendered":"How to Check Your Ubuntu Version"},"content":{"rendered":"\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Check-Ubuntu-Version-scaled.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"727\" data-id=\"5830\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Check-Ubuntu-Version-scaled.jpeg\" alt=\"How to check ubuntu version via command line and GUI\" class=\"wp-image-5830\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Check-Ubuntu-Version-scaled.jpeg 2560w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Check-Ubuntu-Version-300x85.jpeg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Check-Ubuntu-Version-1024x291.jpeg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Check-Ubuntu-Version-768x218.jpeg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Check-Ubuntu-Version-1536x436.jpeg 1536w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Check-Ubuntu-Version-2048x581.jpeg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Knowing which version of <a href=\"https:\/\/www.veeble.com\/kb\/sources-list-file-urls-ubuntu\/\">Ubuntu<\/a> your system is running is crucial for software compatibility, troubleshooting, and security updates. This guide will cover various ways to check your Ubuntu version, including detailed explanations, use cases, and step-by-step screenshots.<\/p>\n\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading has-text-align-center\" id=\"quick-command-overview\"><span style=\"text-decoration: underline\">Quick Command Overview<\/span><\/h3>\n\n\n<figure class=\"wp-block-table is-style-stripes\" style=\"font-size:15px\"><table class=\"has-fixed-layout\" style=\"border-style:none;border-width:0px\"><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>lsb_release -a<\/td><td>Display Ubuntu version details.<\/td><\/tr><tr><td>cat \/etc\/os-release<\/td><td>View system information from a file.<\/td><\/tr><tr><td>hostnamectl<\/td><td>Show system hostname and OS details.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"1-using-the-lsbrelease-command\">1. Using the lsb_release Command<\/h2>\n\n\n<p>The <strong>lsb_release<\/strong> command is one of the quickest ways to check your Ubuntu version.<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><strong>Features:<\/strong><br>1. Provides a structured output with details on version and codename.<br>2. Ideal for users who prefer command-line tools.<\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the terminal using <strong>Ctrl + Alt + T<\/strong>.<\/li>\n\n\n\n<li>Type the below command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>lsb_release -a<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Sample Output:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230242.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1054\" height=\"204\" data-id=\"5819\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230242.png\" alt=\"lsb_release -a command for checking ubuntu version via commandline\" class=\"wp-image-5819\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230242.png 1054w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230242-300x58.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230242-1024x198.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230242-768x149.png 768w\" sizes=\"auto, (max-width: 1054px) 100vw, 1054px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"2-viewing-etcosrelease\">2. Viewing \/etc\/os-release<\/h2>\n\n\n<p>This file contains essential system identification data.<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><strong>Features:<\/strong><br>1. Always available as part of the OS.<br>2. Shows version, distribution name, and more.<\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Enter:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/os-release<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Sample Output:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230546.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"423\" data-id=\"5820\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230546.png\" alt=\"cat \/etc\/os-release output shows the ubuntu version via commandline\" class=\"wp-image-5820\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230546.png 1440w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230546-300x88.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230546-1024x301.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230546-768x226.png 768w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"3-using-hostnamectl\">3. Using hostnamectl<\/h2>\n\n\n<p>The <strong><a href=\"https:\/\/www.veeble.com\/kb\/how-to-fix-sudo-unable-to-resolve-host\/\">hostnamectl<\/a><\/strong> is a command for managing and querying system hostname details.<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><strong>Feature:<\/strong> Provides more than just the OS version, including kernel info and device type.<\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Run the command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>hostnamectl<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>The output should look like this:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230826.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1487\" height=\"418\" data-id=\"5822\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230826.png\" alt=\"check hostnamectl command in your ubuntu commandline to know your ubuntu version\" class=\"wp-image-5822\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230826.png 1487w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230826-300x84.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230826-1024x288.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-230826-768x216.png 768w\" sizes=\"auto, (max-width: 1487px) 100vw, 1487px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"4-neofetch-a-visual-option\">4. Neofetch: A Visual Option<\/h2>\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Neofetch\" target=\"_blank\" rel=\"noopener\">Neofetch<\/a> is a tool that displays system information in a more visually appealing format.<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><strong>Feature:<\/strong> Great for presentations or sharing system specs with others.<\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install the neofetch utility with the below command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install neofetch -y<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Then run the command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>neofetch<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231103.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1913\" height=\"654\" data-id=\"5824\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231103.png\" alt=\"neofetch command is a utility which can be used to check ubuntu version in ubuntu.\" class=\"wp-image-5824\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231103.png 1913w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231103-300x103.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231103-1024x350.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231103-768x263.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231103-1536x525.png 1536w\" sizes=\"auto, (max-width: 1913px) 100vw, 1913px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"5-using-gui-graphical-user-interface\">5. Using GUI (Graphical User Interface)<\/h2>\n\n\n<p>If you prefer not to use the terminal, Ubuntu allows you to check your version through system settings.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <strong>Settings<\/strong> from the applications menu.<\/li>\n\n\n\n<li>Navigate to <strong>About<\/strong> or <strong>Details<\/strong>.<\/li>\n\n\n\n<li>Your Ubuntu version will be listed under <strong>OS Name<\/strong> and <strong>Version<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231505.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1900\" height=\"917\" data-id=\"5825\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231505.jpg\" alt=\"check ubuntu version via ubuntu gui.\" class=\"wp-image-5825\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231505.jpg 1900w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231505-300x145.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231505-1024x494.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231505-768x371.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/Screenshot-2024-11-13-231505-1536x741.jpg 1536w\" sizes=\"auto, (max-width: 1900px) 100vw, 1900px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-0cec5d0c\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<p>Using any of these five methods, you can easily identify your Ubuntu version and keep your system up-to-date. Please choose the method that best suits your comfort level, whether using the command line or <a href=\"https:\/\/www.veeble.com\/kb\/install-gui-ubuntu-vps\/\">Ubuntu GUI<\/a>.<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-faab30c2 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Take Control of Your Hosting<\/h3><p class=\"uagb-cta__desc\">Enjoy full root access and complete control over your VPS environment.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/vps-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">See Pricing<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn 5 different methods to check the Ubuntu version through the command line and Ubuntu Graphical User Interface easily.<\/p>\n","protected":false},"author":7,"featured_media":8454,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5],"tags":[],"class_list":["post-5815","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/How-to-Check-Your-Ubuntu-Version.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/How-to-Check-Your-Ubuntu-Version-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/How-to-Check-Your-Ubuntu-Version-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/How-to-Check-Your-Ubuntu-Version-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/How-to-Check-Your-Ubuntu-Version-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/How-to-Check-Your-Ubuntu-Version.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/11\/How-to-Check-Your-Ubuntu-Version.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"Learn 5 different methods to check the Ubuntu version through the command line and Ubuntu Graphical User Interface easily.","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=5815"}],"version-history":[{"count":12,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5815\/revisions"}],"predecessor-version":[{"id":8823,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5815\/revisions\/8823"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8454"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=5815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=5815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=5815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}