{"id":3755,"date":"2025-11-04T13:36:09","date_gmt":"2025-11-04T13:36:09","guid":{"rendered":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?p=3755"},"modified":"2025-12-12T10:08:32","modified_gmt":"2025-12-12T10:08:32","slug":"check-os-version-in-linux","status":"publish","type":"post","link":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html","title":{"rendered":"How to Check OS Version in Linux\u200b?"},"content":{"rendered":"\n<p>When working with Linux systems, one of the most common tasks, especially for system administrators, developers, or anyone managing a server, is checking the operating system version.<\/p>\n\n\n\n<p>Whether you are troubleshooting, installing compatible software, or just curious about your system, knowing your Linux distribution name and version helps you make better decisions.<\/p>\n\n\n\n<p>In this article, we will explore different ways to check the OS version in Linux, explained in a simple, step-by-step manner. The best part is that you don\u2019t need to be a pro; even beginners can follow along easily!<\/p>\n\n\n\n<hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/467\/install-cpanel-in-linux-server.html\"><strong>Guide to Install cPanel in a Linux Server<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why is Checking the OS Version Important?<\/strong><\/h2>\n\n\n\n<p>Before we dive into the commands, let\u2019s understand why this matters!<\/p>\n\n\n\n<p>Before we dive into the commands, let\u2019s understand why this matters!<\/p>\n\n\n\n<ul class=\"wp-block-list\" style=\"list-style: '\\2794';\">\n<li>&nbsp;Install compatible software packages<\/li>\n\n\n\n<li>&nbsp;Follow the correct installation or upgrade steps<\/li>\n\n\n\n<li>&nbsp;Apply the right security patches<\/li>\n\n\n\n<li>&nbsp;Troubleshoot issues more effectively<\/li>\n\n\n\n<li>&nbsp;Communicate system details when asking for support<\/li>\n<\/ul>\n\n\n\n<p>Different Linux distributions (such as Ubuntu, CentOS, Debian, and Fedora) often use different package managers and system tools. So, confirming your OS details avoids a lot of confusion later!<\/p>\n\n\n\n<hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/446\/search-file-in-linux-using-commands.html\"><strong>How to Search a File in Linux Using a Command?<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Methods to Check the OS Version in Linux<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Method 1: Using the \/etc\/os-release File (Most Common Way)<\/strong><\/h3>\n\n\n\n<p>The <strong>\/etc\/os-release<\/strong> file contains identification data for your Linux distribution.<\/p>\n\n\n\n<p>\u2605 <strong>Command:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>cat \/etc\/os-release<\/strong><\/td>\n<\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2605 <strong>Example Output:<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"131\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-etcos-release-File.png\" alt=\"Check the OS Version Using the etcos-release File\" class=\"wp-image-3756\"\/><\/figure>\n<\/div>\n\n\n<p>\u2605 <strong>Explanation:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>NAME<\/strong> \u2192 It will show your Linux distribution name (Ubuntu, CentOS, Debian, etc.).<\/li>\n\n\n\n<li><strong>VERSION<\/strong> \u2192 It will show the full version name and code.<\/li>\n\n\n\n<li><strong>ID_LIKE<\/strong> \u2192 It shows which family your distribution is based on.<\/li>\n\n\n\n<li><strong>PRETTY_NAME<\/strong> \u2192 It will show a nicely formatted version name, good for quick display.<\/li>\n<\/ul>\n\n\n\n<p>This method works on almost all modern Linux distributions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Method 2: Using the lsb_release Command<\/strong><\/h3>\n\n\n\n<p>The <strong>lsb_release<\/strong> command provides Linux Standard Base information about your distribution.<\/p>\n\n\n\n<p>\u2605 <strong>Command:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>lsb_release -a<\/strong><\/td>\n<\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2605 <strong>Example Output:<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"289\" height=\"67\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-lsb_release-Command.png\" alt=\"Check the OS Version Using the lsb_release Command\" class=\"wp-image-3757\"\/><\/figure>\n<\/div>\n\n\n<p><strong>Explanation:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Distributor ID<\/strong> \u2192 It shows your OS name.<\/li>\n\n\n\n<li><strong>Description<\/strong> \u2192 It shows the complete name with version.<\/li>\n\n\n\n<li><strong>Release<\/strong> \u2192 It shows the Version number only.<\/li>\n\n\n\n<li><strong>Codename<\/strong> \u2192 It shows the Internal name used by the distribution (e.g., jammy, buster).<\/li>\n<\/ul>\n\n\n\n<p>If you get a message like <strong>\u201ccommand not found\u201d<\/strong>, you can install it using:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>sudo apt install lsb-release<\/strong><\/td>\n<\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/441\/restart-linux-server-by-command.html\"><strong>How to Restart\/Reboot Linux Server by Command?<\/strong><\/a><\/p><hr>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Method 3: Using the hostnamectl Command<\/strong><\/h3>\n\n\n\n<p>The <strong>hostnamectl<\/strong> command not only displays your system\u2019s hostname but also provides OS details.<\/p>\n\n\n\n<p>\u2605 <strong>Command:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>hostnamectl<\/strong><\/td>\n<\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2605 <strong>Example Output:<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"147\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-hostnamectl-Command.png\" alt=\"Check the OS Version Using the hostnamectl Command\" class=\"wp-image-3758\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-hostnamectl-Command.png 413w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-hostnamectl-Command-300x107.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/figure>\n<\/div>\n\n\n<p>\u2605 <strong>Explanation:<\/strong><\/p>\n\n\n\n<p>You have to look at the Operating System line; it tells you the exact name and version.<\/p>\n\n\n\n<p>This command is part of the systemd suite, so it works on all systemd-based distributions, such as Ubuntu, CentOS, Fedora, Debian, and more.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Method 4: Viewing the issue File<\/strong><\/h3>\n\n\n\n<p>Older systems (especially minimal installations) may not have the <strong>lsb_release<\/strong> command. In that case, you can use the <strong>\/etc\/issue<\/strong> file.<\/p>\n\n\n\n<p>\u2605 <strong>Command:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>cat \/etc\/issue<\/strong><\/td>\n<\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2605 <strong>Example Output:<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"206\" height=\"19\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Viewing-the-issue-File.png\" alt=\"Check the OS Version Viewing the issue File\" class=\"wp-image-3759\"\/><\/figure>\n<\/div>\n\n\n<hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/440\/how-to-configure-dns-in-linux.html\"><strong>How to Configure DNS on Linux?<\/strong><\/a><\/p><hr>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Method 5: Checking the Kernel Version (Optional but Useful)<\/strong><\/h3>\n\n\n\n<p>Sometimes you might also need to know which Linux kernel version your system is running.<\/p>\n\n\n\n<p>\u2605 <strong>Command:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>uname -r<\/strong><\/td>\n<\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2605 <strong>Example Output:<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"139\" height=\"22\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Checking-the-Kernel-Version.png\" alt=\"checking the kernel version\" class=\"wp-image-3760\"\/><\/figure>\n<\/div>\n\n\n<p>\u2605 <strong>Explanation:<\/strong><\/p>\n\n\n\n<p>The kernel version is important when installing specific drivers or modules, or when diagnosing compatibility issues.<\/p>\n\n\n\n<p>To get full details, including the OS name:<\/p>\n\n\n\n<p>\u2605 <strong>Command:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>uname -a<\/strong><\/td>\n<\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2605 <strong>Example Output:<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"648\" height=\"36\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Checking-the-Kernel-Version-and-Details.png\" alt=\"Checking the Kernel Version and Details\" class=\"wp-image-3761\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Checking-the-Kernel-Version-and-Details.png 648w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Checking-the-Kernel-Version-and-Details-300x17.png 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/figure>\n<\/div>\n\n\n<hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/430\/ls-command-in-linux.html\"><strong>Know About the ls Command in Linux With Examples<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Quick Summary<\/strong><\/h2>\n\n\n\n <table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n    <tbody>\n      <tr style=\"height: 46px;\">\n        <th style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>Method<\/strong><\/span><\/p><\/th>\n        <th style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>Command<\/strong><\/span><\/p><\/th>\n        <th style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>Works On<\/strong><\/span><\/p><\/th>\n        <th style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>Output Includes<\/strong><\/span><\/p><\/th>\n      <\/tr>\n      <tr style=\"height: 46px;\">\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>\/etc\/os-release<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>cat \/etc\/os-release<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">All Modern Distros<\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">OS Name, Version, ID<\/span><\/p><\/td>\n      <\/tr>\n      <tr style=\"height: 46px;\">\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>lsb_release<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>lsb_release -a<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">Ubuntu, Debian, Fedora, etc.<\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">Distributor, Codename, Release<\/span><\/p><\/td>\n      <\/tr>\n      <tr style=\"height: 46px;\">\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>hostnamectl<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>hostnamectl<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">Systemd-based Systems<\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">OS + Kernel Info<\/span><\/p><\/td>\n      <\/tr>\n      <tr style=\"height: 46px;\">\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>\/etc\/issue<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>cat \/etc\/issue<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">Older Systems<\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">Basic OS Info<\/span><\/p><\/td>\n      <\/tr>\n      <tr style=\"height: 46px;\">\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>uname<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>uname -r<\/strong><\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">All Linux Systems<\/span><\/p><\/td>\n        <td style=\"padding: 5px 10px; width: 25%; height: 46px; text-align: center;\"><p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">Kernel Version Only<\/span><\/p><\/td>\n      <\/tr>\n    <\/tbody>\n  <\/table>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Wrapping It Up<\/strong><\/h2>\n\n\n\n<p>That\u2019s it! You now know multiple ways to check the OS version in Linux, whether you are using Ubuntu, CentOS, Debian, or any other distribution.<\/p>\n\n\n\n<p>This small yet essential skill helps you confidently manage your Linux system and ensures you are always using compatible tools and keeping your system up to date.<\/p>\n\n\n\n<p>If you are managing Linux servers for your website, make sure your hosting environment is also optimized for your OS.<\/p>\n\n<script>\nfunction copyCommand(btn) {\n  const td = btn.parentElement.querySelector(\"td.kb_firewall\");\n  const text = td.innerText.trim();\n\n  navigator.clipboard.writeText(text).then(() => {\n    const msg = btn.parentElement.querySelector(\".copy-msg\");\n    msg.style.display = \"inline-block\";\n    setTimeout(() => msg.style.display = \"none\", 1000);\n  });\n}\n<\/script>","protected":false},"excerpt":{"rendered":"<p>When working with Linux systems, one of the most common tasks, especially for system administrators, developers, or anyone managing a server, is checking the operating system version. Whether you are troubleshooting, installing compatible software, or just curious about your system, knowing your Linux distribution name and version helps you make better decisions. In this article, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-3755","post","type-post","status-publish","format-standard","hentry","category-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Check OS Version in Linux\u200b?<\/title>\n<meta name=\"description\" content=\"Learn how to check your OS version in Linux using simple commands with a step-by-step guide for beginners to identify Linux distributions and version easily.\" \/>\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.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check OS Version in Linux\u200b?\" \/>\n<meta property=\"og:description\" content=\"Learn how to check your OS version in Linux using simple commands with a step-by-step guide for beginners to identify Linux distributions and version easily.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-04T13:36:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-12T10:08:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-etcos-release-File.png\" \/>\n\t<meta property=\"og:image:width\" content=\"298\" \/>\n\t<meta property=\"og:image:height\" content=\"131\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html\",\"name\":\"How to Check OS Version in Linux\u200b?\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-etcos-release-File.png\",\"datePublished\":\"2025-11-04T13:36:09+00:00\",\"dateModified\":\"2025-12-12T10:08:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\"},\"description\":\"Learn how to check your OS version in Linux using simple commands with a step-by-step guide for beginners to identify Linux distributions and version easily.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html#primaryimage\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-etcos-release-File.png\",\"contentUrl\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-etcos-release-File.png\",\"width\":298,\"height\":131},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Check OS Version in Linux\u200b?","description":"Learn how to check your OS version in Linux using simple commands with a step-by-step guide for beginners to identify Linux distributions and version easily.","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.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html","og_locale":"en_US","og_type":"article","og_title":"How to Check OS Version in Linux\u200b?","og_description":"Learn how to check your OS version in Linux using simple commands with a step-by-step guide for beginners to identify Linux distributions and version easily.","og_url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2025-11-04T13:36:09+00:00","article_modified_time":"2025-12-12T10:08:32+00:00","og_image":[{"width":298,"height":131,"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-etcos-release-File.png","type":"image\/png"}],"author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html","name":"How to Check OS Version in Linux\u200b?","isPartOf":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html#primaryimage"},"image":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html#primaryimage"},"thumbnailUrl":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-etcos-release-File.png","datePublished":"2025-11-04T13:36:09+00:00","dateModified":"2025-12-12T10:08:32+00:00","author":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108"},"description":"Learn how to check your OS version in Linux using simple commands with a step-by-step guide for beginners to identify Linux distributions and version easily.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html#primaryimage","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-etcos-release-File.png","contentUrl":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/11\/Check-the-OS-Version-Using-the-etcos-release-File.png","width":298,"height":131},{"@type":"WebSite","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/3755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=3755"}],"version-history":[{"count":10,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/3755\/revisions"}],"predecessor-version":[{"id":3855,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/3755\/revisions\/3855"}],"wp:attachment":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=3755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}