{"id":4957,"date":"2014-04-29T01:11:19","date_gmt":"2014-04-28T17:11:19","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4957"},"modified":"2023-10-07T16:11:23","modified_gmt":"2023-10-07T16:11:23","slug":"check-ubuntu-version","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/check-ubuntu-version\/","title":{"rendered":"How to Check Ubuntu Version"},"content":{"rendered":"<p><img decoding=\"async\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-1024x878.jpg\" alt=\"How to Check the Ubuntu Version\" width=\"1024\" height=\"878\" class=\"alignnone size-large wp-image-18499 lazyload\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-1024x878.jpg 1024w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-300x257.jpg 300w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-128x110.jpg 128w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-420x360.jpg 420w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-540x463.jpg 540w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-720x617.jpg 720w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-960x823.jpg 960w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-1140x977.jpg 1140w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-1166x999.jpg 1166w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-840x720.jpg 840w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version-1260x1080.jpg 1260w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/04\/How-to-Check-the-Ubuntu-Version.jpg 1400w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/878;\" \/><\/p>\n<p><a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-ubuntu-beginners-guide-ubuntu-linux-distro\/\">Ubuntu<\/a>, a popular Linux distribution, undergoes regular updates and releases. Knowing the version of Ubuntu you&#8217;re running can be crucial for various reasons, such as software compatibility, troubleshooting, or when seeking support.<\/p>\n<p>In this guide, we will walk you through the steps to check the version of Ubuntu installed on your system. By the end of this tutorial, you&#8217;ll be able to determine not only the version number but also the codename and release date of your Ubuntu installation. <\/p>\n<p>Checking the  version on your system can be done using the terminal. Follow these simple steps to check the Ubuntu version:<\/p>\n<h2>Open the Terminal<\/h2>\n<p>Open the terminal by pressing Ctrl + Alt + T or by searching for &#8220;terminal&#8221; in the application menu.<\/p>\n<p><strong>Check Ubuntu Version:<\/strong><\/p>\n<h2>Using the &#8220;lsb_release&#8221; Command<\/h2>\n<p>Enter the following command in the terminal:<\/p>\n<pre>\r\nlsb_release -a\r\n<\/pre>\n<p>This command stands for &#8220;Linux Standard Base&#8221; and provides information about the Linux distribution. It will display detailed information about your Ubuntu version, including the distribution, release number, and codename. The output should look similar to this:<\/p>\n<pre>\r\nNo LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription:    Ubuntu 18.04.6 LTS\r\nRelease:        18.04\r\nCodename:       bionic\r\n<\/pre>\n<p>From the above output, you can determine that the Ubuntu version is &#8220;18.04.6 LTS&#8221; and the codename for this release is &#8220;bionic&#8221;.<\/p>\n<p>Alternatively, you can use the following command to display only the Ubuntu release number:<\/p>\n<pre>\r\nlsb_release -r\r\n<\/pre>\n<p>The output will be similar to this:<\/p>\n<pre>\r\nRelease:\t18.04\r\n<\/pre>\n<h2>Using the &#8220;\/etc\/os-release&#8221; File<\/h2>\n<p>Type the following command:<\/p>\n<pre>\r\ncat \/etc\/os-release\r\n<\/pre>\n<p>The output will display various details about your Ubuntu system, including the version. Look for the lines starting with PRETTY_NAME or VERSION.<\/p>\n<pre>\r\nroot@geeks:~# cat \/etc\/os-release\r\nNAME=\"Ubuntu\"\r\nVERSION=\"18.04.6 LTS (Bionic Beaver)\"\r\nID=ubuntu\r\nID_LIKE=debian\r\nPRETTY_NAME=\"Ubuntu 18.04.6 LTS\"\r\nVERSION_ID=\"18.04\"\r\nHOME_URL=\"https:\/\/www.ubuntu.com\/\"\r\nSUPPORT_URL=\"https:\/\/help.ubuntu.com\/\"\r\nBUG_REPORT_URL=\"https:\/\/bugs.launchpad.net\/ubuntu\/\"\r\nPRIVACY_POLICY_URL=\"https:\/\/www.ubuntu.com\/legal\/terms-and-policies\/privacy-policy\"\r\nVERSION_CODENAME=bionic\r\nUBUNTU_CODENAME=bionic\r\n<\/pre>\n<h2>Using the &#8220;\/etc\/lsb-release&#8221; File<\/h2>\n<p>Enter the Command:<\/p>\n<pre>\r\ncat \/etc\/lsb-release\r\n<\/pre>\n<p>This file specifically contains information about the Ubuntu version. Look for the line starting with DISTRIB_DESCRIPTION.<\/p>\n<pre>\r\nroot@geeks:~# cat \/etc\/lsb-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=18.04\r\nDISTRIB_CODENAME=bionic\r\nDISTRIB_DESCRIPTION=\"Ubuntu 18.04.6 LTS\"\r\n<\/pre>\n<h2>Using the &#8220;hostnamectl&#8221; Command<\/h2>\n<p>Enter the Command:<\/p>\n<pre>\r\nhostnamectl\r\n<\/pre>\n<p>This command provides information about the system&#8217;s hostname and other related details, including the Operating System. Look for the line starting with Operating System.<\/p>\n<pre>\r\nroot@geeks:~# hostnamectl\r\n   Static hostname: ubuntu.webhostinggeeks.com\r\n         Icon name: computer-vm\r\n           Chassis: vm\r\n        Machine ID: c9bfbfda64dd452d80996bb647adb33a\r\n           Boot ID: 3b3019c9d2c6425f909bb120ef40141a\r\n    Virtualization: kvm\r\n  Operating System: Ubuntu 18.04.6 LTS\r\n            Kernel: Linux 4.15.0-213-generic\r\n      Architecture: x86-64\r\n<\/pre>\n<h2>Using the &#8220;neofetch&#8221; Utility<\/h2>\n<p>Neofetch is a command-line system information tool that displays information about your system, its software, and themes in an aesthetic and visually pleasing way.<\/p>\n<p>Install Neofetch: If you haven&#8217;t installed neofetch, you can do so with the following command:<\/p>\n<pre>\r\nsudo apt install neofetch\r\n<\/pre>\n<p>Run Neofetch:<\/p>\n<pre>\r\nneofetch\r\n<\/pre>\n<p>The output will display a colorful logo of the operating system alongside various system details, including the Ubuntu version.<\/p>\n<h2>Commands Mentioned<\/h2>\n<ul>\n<li><span class=\"fw-bold\">lsb_release -a<\/span> \u2013 Retrieves information about the Linux distribution, including the Ubuntu version.<\/li>\n<li><span class=\"fw-bold\">cat \/etc\/os-release<\/span> \u2013 Displays the OS release information.<\/li>\n<li><span class=\"fw-bold\">cat \/etc\/lsb-release<\/span> \u2013 Shows the LSB (Linux Standard Base) release details.<\/li>\n<li><span class=\"fw-bold\">hostnamectl<\/span> \u2013 Provides details about the system&#8217;s hostname and OS.<\/li>\n<li><span class=\"fw-bold\">sudo apt install neofetch<\/span> \u2013 Installs the neofetch utility.<\/li>\n<li><span class=\"fw-bold\">neofetch<\/span> \u2013 Runs the neofetch utility to display system information.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>Ubuntu offers multiple methods to check its version, catering to users with varying preferences and needs. Whether you&#8217;re a command-line enthusiast or prefer graphical methods, Ubuntu ensures you can quickly and efficiently determine your system&#8217;s version.<\/p>\n<p>Remember to regularly check for updates to stay abreast of security patches and new features.<\/p>\n<p>For those interested in understanding more about web servers, you might find our articles on the <a href=\"https:\/\/webhostinggeeks.com\/best\/web-server\/\">best web servers<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/apache-http-server-explained\/\">Apache<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/nginx-server-explained\/\">Nginx<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/litespeed-web-server-explained\/\">LiteSpeed<\/a> particularly insightful. For more insights into web hosting and servers, consider exploring our articles on <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-dedicated-server-hosting\/\">dedicated servers<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-vps-hosting\/\">VPS servers<\/a>, and other related topics.<\/p>\n<p>Looking to supercharge your Ubuntu projects with the best hosting available? We&#8217;ve got your back. After thorough evaluations, we&#8217;ve listed the top contenders in our &#8220;<a href=\"https:\/\/webhostinggeeks.com\/best\/ubuntu-hosting\/\">Best Ubuntu Hosting 2023<\/a>&#8221; roundup. Ensure your online ventures are in expert hands. <\/p>\n<p>Welcome to the comments!<\/p>\n<h2>FAQ<\/h2>\n<ol itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Why do I need to know my Ubuntu version?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Knowing your Ubuntu version is essential for software compatibility, receiving security updates, and effective troubleshooting. Different versions might have unique features or issues, making it crucial for optimal system performance and security.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Can I upgrade my Ubuntu version?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Yes, Ubuntu allows users to upgrade to newer versions. However, it&#8217;s recommended to backup important data before proceeding and ensure that the new version is compatible with your applications and hardware.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the difference between LTS and regular releases?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">LTS stands for Long Term Support. LTS releases are supported for five years, while regular releases have a nine-month support period. LTS versions are considered more stable and are recommended for production environments.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">How often does Ubuntu release new versions?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Ubuntu typically releases new versions every six months, in April and October. LTS releases occur every two years in April.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Is there a way to automate checking for Ubuntu version updates?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Yes, Ubuntu has an in-built update manager that periodically checks for updates. Users can also configure automatic notifications for new releases through system settings.<\/span>\n            <\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu, a popular Linux distribution, undergoes regular updates and releases. Knowing the version of Ubuntu you&#8217;re running can be crucial for various reasons, such as software compatibility, troubleshooting, or when&#8230;<\/p>\n","protected":false},"author":6,"featured_media":18499,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1],"tags":[1536,1856],"class_list":["post-4957","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=4957"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4957\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/18499"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}