{"id":3906,"date":"2018-11-20T16:05:21","date_gmt":"2018-11-20T16:05:21","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=3906"},"modified":"2018-12-07T02:36:29","modified_gmt":"2018-12-07T02:36:29","slug":"methods-to-check-ubuntu-version-with-linux-command","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/20\/methods-to-check-ubuntu-version-with-linux-command\/","title":{"rendered":"Methods to Check Ubuntu Version with Linux Command"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/11\/check-ubuntu-version.png\" alt=\"check ubuntu version\" width=\"713\" height=\"341\" \/><\/p>\n<p>In this guide, we will show you how you can easily check which version of Ubuntu you have on your system. There are 2 main ways you can achieve this<\/p>\n<ul>\n<li>Using the Terminal<\/li>\n<li>Using the GUI<\/li>\n<\/ul>\n<p>So let&#8217;s dive in and see how you can use the above methods to check which version of Ubuntu resides on your system.<\/p>\n<h2>1) Using Terminal<\/h2>\n<p>This method works regardless of the Ubuntu release or <a href=\"https:\/\/linoxide.com\/linux-how-to\/install-desktop-environments-centos-7\/\" target=\"_blank\" rel=\"noopener\">desktop environment<\/a> you are using.<\/p>\n<p>To check the version, Open your terminal and run the following command<\/p>\n<p>lsb_release -a<\/p>\n<p>Output<\/p>\n<p>No LSB modules are available.<br \/>\nDistributor ID: Ubuntu<br \/>\nDescription: Ubuntu 16.04.5 LTS<br \/>\nRelease: 16.04<br \/>\nCodename: xenial<\/p>\n<p>To be more specific you can also run<\/p>\n<p>lsb_release -r<\/p>\n<p>Output<\/p>\n<p>Release: 16.04<\/p>\n<p>Another way you can retrieve the version of your Ubuntu system is by running<\/p>\n<p>cat \/etc\/lsb-release<\/p>\n<p>Output<\/p>\n<p>DISTRIB_ID=Ubuntu<br \/>\nDISTRIB_RELEASE=16.04<br \/>\nDISTRIB_CODENAME=xenial<br \/>\nDISTRIB_DESCRIPTION=&#8221;Ubuntu 16.04.5 LTS&#8221;<\/p>\n<p>To gather more detailed information run<\/p>\n<p>cat \/etc\/*release<\/p>\n<p>Output<\/p>\n<p>DISTRIB_ID=Ubuntu<br \/>\nDISTRIB_RELEASE=16.04<br \/>\nDISTRIB_CODENAME=xenial<br \/>\nDISTRIB_DESCRIPTION=&#8221;Ubuntu 16.04.5 LTS&#8221;<br \/>\nNAME=&#8221;Ubuntu&#8221;<br \/>\nVERSION=&#8221;16.04.5 LTS (Xenial Xerus)&#8221;<br \/>\nID=ubuntu<br \/>\nID_LIKE=debian<br \/>\nPRETTY_NAME=&#8221;Ubuntu 16.04.5 LTS&#8221;<br \/>\nVERSION_ID=&#8221;16.04&#8243;<br \/>\nHOME_URL=&#8221;http:\/\/www.ubuntu.com\/&#8221;<br \/>\nSUPPORT_URL=&#8221;http:\/\/help.ubuntu.com\/&#8221;<br \/>\nBUG_REPORT_URL=&#8221;http:\/\/bugs.launchpad.net\/ubuntu\/&#8221;<br \/>\nVERSION_CODENAME=xenial<br \/>\nUBUNTU_CODENAME=xenial<\/p>\n<p>In addition, this can also come in handy<\/p>\n<p># cat \/etc\/os-release<\/p>\n<p>Output<\/p>\n<p>NAME=&#8221;Ubuntu&#8221;<br \/>\nVERSION=&#8221;18.04.1 LTS (Bionic Beaver)&#8221;<br \/>\nID=ubuntu<br \/>\nID_LIKE=debian<br \/>\nPRETTY_NAME=&#8221;Ubuntu 18.04.1 LTS&#8221;<br \/>\nVERSION_ID=&#8221;18.04&#8243;<br \/>\nHOME_URL=&#8221;https:\/\/www.ubuntu.com\/&#8221;<br \/>\nSUPPORT_URL=&#8221;https:\/\/help.ubuntu.com\/&#8221;<br \/>\nBUG_REPORT_URL=&#8221;https:\/\/bugs.launchpad.net\/ubuntu\/&#8221;<br \/>\nPRIVACY_POLICY_URL=&#8221;https:\/\/www.ubuntu.com\/legal\/terms-and-policies\/privacy-policy&#8221;<br \/>\nVERSION_CODENAME=bionic<br \/>\nUBUNTU_CODENAME=bionic<\/p>\n<p>To get information about the kernel and architecture run<\/p>\n<p>uname -a<\/p>\n<p>Output<\/p>\n<p>Linux ubuntu-16-04-1 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux<\/p>\n<p>Also, the hostnamectl command can help you get the version of Ubuntu you are running<\/p>\n<p>hostnamectl<\/p>\n<p>This will give more detailed information such as Operating System, kernel, Architecture and in case the system is virtualized, it will display virtualization type and chassis.<\/p>\n<p>Output<\/p>\n<p>Static hostname: ubuntu-16-04-1<br \/>\nIcon name: computer-vm<br \/>\nChassis: vm<br \/>\nMachine ID: bc429e3618b24cebbb4ba8e951e20250<br \/>\nBoot ID: 9b1912bef4064d1cb449a009c31fc1c6<br \/>\nVirtualization: kvm<br \/>\nOperating System: Ubuntu 16.04.5 LTS<br \/>\nKernel: Linux 4.4.0-57-generic<br \/>\nArchitecture: x86-64<\/p>\n<p>Lastly, you can run this command on Terminal to give you the version of Ubuntu that you are running.<\/p>\n<p>awk &#8216;\/^Description: Ubuntu [0-9]\/ &#8216; \/usr\/share\/python-apt\/templates\/Ubuntu.info<\/p>\n<p>Output<\/p>\n<p>Ubuntu 16.04<\/p>\n<h2>2) Using GUI &#8211; GNOME Desktop<\/h2>\n<p>If you are running Ubuntu from a Desktop environment, checking the version of Ubuntu is quite an easy and straight-forward thing to do.<\/p>\n<p>If you are running Unity Desktop environment, Open &#8216;System Settings&#8217; from the main menu as shown below<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/System-settings.jpg\" alt=\"check which version of Ubuntu you have \" width=\"424\" height=\"221\" \/><\/p>\n<p>Thereafter, click on the &#8216;Details&#8217; icon as shown<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/details.jpg\" alt=\"check which version of Ubuntu you have \" width=\"485\" height=\"138\" \/><\/p>\n<p>This is going to open a Window with a lot more information such as<\/p>\n<ul>\n<li>CPU type<\/li>\n<li>RAM capacity<\/li>\n<li>Operating System<\/li>\n<li>GPU<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/Ubuntu-version.png\" alt=\"check which version of Ubuntu you have \" width=\"850\" height=\"473\" \/><\/p>\n<p>If you are on GNOME display like in Ubuntu 18.04 and later, click on the drop-down arrow at the top left corner.<\/p>\n<p>This will populate a pull-down menu. Select &#8216;Settings&#8217; icon s shown<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/settings.jpg\" alt=\"check which version of Ubuntu you have \" width=\"373\" height=\"344\" \/><\/p>\n<p>In the next Window, scroll down and click on &#8216;Details&#8217;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/details-beaver.jpg\" alt=\"check which version of Ubuntu you have \" width=\"310\" height=\"197\" \/><\/p>\n<p>This is going to display a ton of information including the OS type, CPU, RAM and system architecture<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/Bionic-beaver.jpg\" alt=\"check which version of Ubuntu you have \" width=\"1098\" height=\"567\" \/><\/p>\n<p>And that&#8217;s how you can check out your Ubuntu version and other System properties! Also, check out the <a href=\"https:\/\/linoxide.com\/linux-how-to\/install-neofetch-ubuntu-debian-mint-archlinux\/\" target=\"_blank\" rel=\"noopener\">neofetch<\/a> tool you can easily use to populate system information. We hope this guide has been helpful. Drop your comments and feel free to share on your social platforms.<\/p>\n<h3>Read Also:<\/h3>\n<ul>\n<li><a href=\"https:\/\/linoxide.com\/booting\/remove-old-kernel-versions-boot-menu\/\" target=\"_blank\" rel=\"noopener\">How to Remove Old kernel Versions from Boot on Ubuntu 18.04<\/a><\/li>\n<li><a href=\"https:\/\/linoxide.com\/linux-shell-script\/kernel-version-multiple\/\" target=\"_blank\" rel=\"noopener\">Shell Script to Find Kernel Version from Multiple Servers<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/linoxide.com\/linux-how-to\/how-to-check-ubuntu-version-using-command-line\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will show you how you can easily check which version of Ubuntu you have on your system. There are 2 main ways you can achieve this Using the Terminal Using the GUI So let&#8217;s dive in and see how you can use the above methods to check which version of Ubuntu &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/20\/methods-to-check-ubuntu-version-with-linux-command\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Methods to Check Ubuntu Version with Linux Command&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3906","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/3906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=3906"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/3906\/revisions"}],"predecessor-version":[{"id":4649,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/3906\/revisions\/4649"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=3906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=3906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=3906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}