{"id":150,"date":"2015-09-02T14:43:05","date_gmt":"2015-09-02T14:43:05","guid":{"rendered":"http:\/\/onebyte.org\/blog\/?p=150"},"modified":"2015-09-02T14:43:51","modified_gmt":"2015-09-02T14:43:51","slug":"finding-your-linux-version","status":"publish","type":"post","link":"https:\/\/www.onebyte.org\/blog\/2015\/09\/02\/finding-your-linux-version\/","title":{"rendered":"Finding your linux version"},"content":{"rendered":"<p>Useful CLI commands that I&#8217;ve compiled in order to determine which flavor\/version of Linux I&#8217;m running.<\/p>\n<p><strong>Kernel<\/strong>: uname -r<br \/>\n<strong>Distro<\/strong>: lsb_release -a<\/p>\n<p>Prints certain system information usually related to the kernel (-a is the ALL switch).<\/p>\n<pre class=\"lang:default decode:true\">uname -a<\/pre>\n<p>Output:<\/p>\n<pre class=\"lang:default decode:true \">[\/dev] # uname -a\r\nLinux BACKUP01 3.4.6 #1 SMP Tue Feb 17 04:58:58 CST 2015 x86_64 unknown<\/pre>\n<p>You can cat the \/proc\/version file:<\/p>\n<pre class=\"lang:default decode:true \">cat \/proc\/version<\/pre>\n<p>Output:<\/p>\n<pre class=\"lang:default decode:true \">[\/dev] # cat \/proc\/version\r\nLinux version 3.4.6 (root@NasX86Builder) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Tue Feb 17 04:58:58 CST 2015<\/pre>\n<p>cat the \/etc\/lsb-release<\/p>\n<pre class=\"lang:default decode:true\"># cat \/etc\/lsb-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=9.04\r\nDISTRIB_CODENAME=jaunty\r\nDISTRIB_DESCRIPTION=\"Ubuntu 9.04\"<\/pre>\n<p>Debian has \/etc\/debian_version<\/p>\n<pre class=\"lang:default decode:true \"># cat \/etc\/debian_version\r\n5.0.2<\/pre>\n<p>Fedora has \/etc\/fedora-release<\/p>\n<pre class=\"lang:default decode:true\"># cat \/etc\/fedora-release<\/pre>\n<p>Red Hat\/CentOS has \/etc\/redhat-release<\/p>\n<pre class=\"lang:default decode:true \"># cat \/etc\/redhat-release<\/pre>\n<p>Gentoo has \/etc\/gentoo-release<\/p>\n<pre class=\"lang:default decode:true \"># cat \/etc\/gentoo-release\r\nGentoo Base System release 1.12.11.1<\/pre>\n<p>You may be able to try out cat \/etc\/issue<\/p>\n<pre class=\"lang:default decode:true\">[\/dev] # cat \/etc\/issue\r\n\r\nWelcome to TS-670(10.0.10.2), QNAP Systems, Inc.<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Useful CLI commands that I&#8217;ve compiled in order to determine which flavor\/version of Linux I&#8217;m running. Kernel: uname -r Distro: lsb_release -a Prints certain system information usually related to the kernel (-a is the ALL switch). uname -a Output: [\/dev] # uname -a Linux BACKUP01 3.4.6 #1 SMP Tue Feb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":86,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[3,2],"tags":[15,12,14],"class_list":["post-150","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-server","tag-cli","tag-commands","tag-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/512px-Tux.svg_.png",512,594,false],"thumbnail":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/512px-Tux.svg_-150x150.png",150,150,true],"medium":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/512px-Tux.svg_-259x300.png",259,300,true],"medium_large":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/512px-Tux.svg_.png",512,594,false],"large":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/512px-Tux.svg_.png",512,594,false],"1536x1536":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/512px-Tux.svg_.png",512,594,false],"2048x2048":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/512px-Tux.svg_.png",512,594,false],"post-thumbnail":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/512px-Tux.svg_.png",512,594,false],"modality-logo":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/512px-Tux.svg_.png",69,80,false]},"uagb_author_info":{"display_name":"Mr-Moo","author_link":"https:\/\/www.onebyte.org\/blog\/author\/ahess\/"},"uagb_comment_info":0,"uagb_excerpt":"Useful CLI commands that I&#8217;ve compiled in order to determine which flavor\/version of Linux I&#8217;m running. Kernel: uname -r Distro: lsb_release -a Prints certain system information usually related to the kernel (-a is the ALL switch). uname -a Output: [\/dev] # uname -a Linux BACKUP01 3.4.6 #1 SMP Tue Feb [&hellip;]","_links":{"self":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":1,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/150\/revisions\/167"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/media\/86"}],"wp:attachment":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}