{"id":13870,"date":"2025-02-11T05:33:15","date_gmt":"2025-02-11T05:33:15","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=13870"},"modified":"2026-02-26T14:02:08","modified_gmt":"2026-02-26T14:02:08","slug":"how-to-check-your-ubuntu-version-using-the-command-line","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/","title":{"rendered":"How to Check your Ubuntu Version Using the Command Line"},"content":{"rendered":"<p>This guide will walk you through the steps to check your Ubuntu version using the command-line interface (CLI).<\/p>\n<p><strong>Steps to Check Ubuntu Version:<\/strong><\/p>\n<p>For Servers:<br \/>\nIf you check the Ubuntu version on a remote server, connect through an <a href=\"https:\/\/www.bodhost.com\/kb\/how-to-restart-a-linux-system-using-the-reboot-command-via-ssh\/\" target=\"_blank\" rel=\"noopener\">SSH<\/a> client like PuTTY and log in as the root user.<\/p>\n<p>For Desktop Users:<\/p>\n<ol>\n<li>Open the terminal:<br \/>\nUse the keyboard shortcut Ctrl + Alt + T to open the terminal.<\/li>\n<li>Check the Ubuntu version using the \u201clsb_release\u201d command:\n<ol>\n<li>\u00a0Run the following command to display detailed version information:\n<pre>lsb_release -a<\/pre>\n<\/li>\n<li>For a simplified output, use:\n<pre>lsb_release -d<\/pre>\n<\/li>\n<li>The output will display your Ubuntu version details, similar to this:\n<pre>root@examplevps : ~#\u00a0 lsb_release -d\r\nNO LSB modules are available.\r\nDescription:\u00a0\u00a0\u00a0 Ubuntu 22.04 LTS<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u00a0Alternative commands to check the Ubuntu version:\n<ol>\n<li>Use the cat command to read the lsb-release file:\n<pre>cat \/etc\/lsb-release<\/pre>\n<\/li>\n<li>Alternatively, check the \/etc\/issue file for version details:\n<pre>cat \/etc\/issue<\/pre>\n<\/li>\n<li>Both methods will provide information about your installed Ubuntu version.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>These commands help you quickly verify your Ubuntu version, whether you are using a desktop or a server environment. If you require assistance, feel free to contact our support staff.<\/p>\n<p>Learn more about <a href=\"https:\/\/www.bodhost.com\/kb\/how-to-determine-os-versions-using-the-command-line\/\" target=\"_blank\" rel=\"noopener\">How to Determine OS Versions Using the Command Line<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will walk you through the steps to check your Ubuntu version using the command-line interface (CLI). Steps to Check Ubuntu Version: For Servers: If you check the Ubuntu&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[1600],"class_list":["post-13870","post","type-post","status-publish","format-standard","hentry","category-general","tag-check-ubuntu-version"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Check Ubuntu Version via Command Line | bodHOST<\/title>\n<meta name=\"description\" content=\"This guide explains how to check your Ubuntu version using the command line. Follow the simple steps in this guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check Ubuntu Version via Command Line | bodHOST\" \/>\n<meta property=\"og:description\" content=\"This guide explains how to check your Ubuntu version using the command line. Follow the simple steps in this guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-11T05:33:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:08+00:00\" \/>\n<meta name=\"author\" content=\"Serena\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Serena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-check-your-ubuntu-version-using-the-command-line\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-check-your-ubuntu-version-using-the-command-line\\\/\"},\"author\":{\"name\":\"Serena\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\"},\"headline\":\"How to Check your Ubuntu Version Using the Command Line\",\"datePublished\":\"2025-02-11T05:33:15+00:00\",\"dateModified\":\"2026-02-26T14:02:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-check-your-ubuntu-version-using-the-command-line\\\/\"},\"wordCount\":187,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"Check Ubuntu Version\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-check-your-ubuntu-version-using-the-command-line\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-check-your-ubuntu-version-using-the-command-line\\\/\",\"name\":\"How to Check Ubuntu Version via Command Line | bodHOST\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2025-02-11T05:33:15+00:00\",\"dateModified\":\"2026-02-26T14:02:08+00:00\",\"description\":\"This guide explains how to check your Ubuntu version using the command line. Follow the simple steps in this guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-check-your-ubuntu-version-using-the-command-line\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-check-your-ubuntu-version-using-the-command-line\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-check-your-ubuntu-version-using-the-command-line\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Check your Ubuntu Version Using the Command Line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\",\"name\":\"Serena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"caption\":\"Serena\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/seema\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Check Ubuntu Version via Command Line | bodHOST","description":"This guide explains how to check your Ubuntu version using the command line. Follow the simple steps in this guide.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/","og_locale":"en_US","og_type":"article","og_title":"How to Check Ubuntu Version via Command Line | bodHOST","og_description":"This guide explains how to check your Ubuntu version using the command line. Follow the simple steps in this guide.","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2025-02-11T05:33:15+00:00","article_modified_time":"2026-02-26T14:02:08+00:00","author":"Serena","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Serena","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/"},"author":{"name":"Serena","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830"},"headline":"How to Check your Ubuntu Version Using the Command Line","datePublished":"2025-02-11T05:33:15+00:00","dateModified":"2026-02-26T14:02:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/"},"wordCount":187,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["Check Ubuntu Version"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/","name":"How to Check Ubuntu Version via Command Line | bodHOST","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2025-02-11T05:33:15+00:00","dateModified":"2026-02-26T14:02:08+00:00","description":"This guide explains how to check your Ubuntu version using the command line. Follow the simple steps in this guide.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-check-your-ubuntu-version-using-the-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"How to Check your Ubuntu Version Using the Command Line"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830","name":"Serena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","caption":"Serena"},"url":"https:\/\/www.bodhost.com\/kb\/author\/seema\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=13870"}],"version-history":[{"count":3,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13870\/revisions"}],"predecessor-version":[{"id":13873,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13870\/revisions\/13873"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=13870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=13870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=13870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}