<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: HowTo: Find Out My Linux Distribution Name and Version</title> <atom:link href="http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Carlos Santos</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-67533</link> <dc:creator>Carlos Santos</dc:creator> <pubDate>Tue, 24 Jan 2012 14:50:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-67533</guid> <description>Thanks :)</description> <content:encoded><![CDATA[<p>Thanks :)</p> ]]></content:encoded> </item> <item><title>By: Betta</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-62818</link> <dc:creator>Betta</dc:creator> <pubDate>Mon, 26 Sep 2011 09:58:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-62818</guid> <description>Thanks a ton...
lsb_release -a suited my requirements!</description> <content:encoded><![CDATA[<p>Thanks a ton&#8230;<br
/> lsb_release -a suited my requirements!</p> ]]></content:encoded> </item> <item><title>By: rude_ass</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-62750</link> <dc:creator>rude_ass</dc:creator> <pubDate>Fri, 23 Sep 2011 21:40:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-62750</guid> <description>would you also like a foot massage with that ??</description> <content:encoded><![CDATA[<p>would you also like a foot massage with that ??</p> ]]></content:encoded> </item> <item><title>By: jp</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-62597</link> <dc:creator>jp</dc:creator> <pubDate>Tue, 20 Sep 2011 12:15:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-62597</guid> <description>hi
thank you for cat /etc/*-release
and lsb_release -a
very helpful</description> <content:encoded><![CDATA[<p>hi</p><p>thank you for cat /etc/*-release<br
/> and lsb_release -a<br
/> very helpful</p> ]]></content:encoded> </item> <item><title>By: prasanna</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-62157</link> <dc:creator>prasanna</dc:creator> <pubDate>Mon, 05 Sep 2011 05:45:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-62157</guid> <description>please send me linux  versions and release dates</description> <content:encoded><![CDATA[<p>please send me linux  versions and release dates</p> ]]></content:encoded> </item> <item><title>By: cm_R</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-61163</link> <dc:creator>cm_R</dc:creator> <pubDate>Sat, 30 Jul 2011 16:31:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-61163</guid> <description>smarcell - you are so clever. I am in awe.
but when I type that into the little white box thing, it just says &quot;cat /etc/lsb-release.d: Is a directory&quot;
and I still have no idea what my OS is  ;-P
more seriously:
maxx - no you don&#039;t want to change these files or try; what you want to do is something like (just an e.g.) in
/etc/rc.local
#!/bin/sh
#other stuff will be here probably, put your stuff at the end
echo &quot;Hello, you&#039;ve just successfully gained access to Maxx&#039;s computer&quot; &gt; /etc/motd
cat /proc/version &gt;&gt; /etc/motd
echo `uname -a` &gt;&gt; /etc/motd
and so on. you are printing text and the output of programs to the file /etc/motd using shell syntax (the little backticks mean &quot;interpret as a command to run&quot; and echo  means &quot;print this&quot; and &gt; means &quot;create a file and send this to it&quot; and &quot;&gt;&gt; means append this to the end of this file&quot;
generally, motd will be printed on login (&quot;message of the day&quot;, quite old school, some systems might not have it I guess. My Scientific Linux 6.1 does. I think ubuntu does. maybe not.)
if not, you can make it yourself and have it in everyone&#039;s .bashrc by editing /etc/skel. For that matter you can put anything you want in .bashrc or .profile and it will run whevever a shell is opened (a bash shell obviously).
/proc isn&#039;t usually somewhere you want to write, unless you know why you are doing it.</description> <content:encoded><![CDATA[<p>smarcell &#8211; you are so clever. I am in awe.</p><p>but when I type that into the little white box thing, it just says &#8220;cat /etc/lsb-release.d: Is a directory&#8221;</p><p>and I still have no idea what my OS is  ;-P</p><p>more seriously:</p><p>maxx &#8211; no you don&#8217;t want to change these files or try; what you want to do is something like (just an e.g.) in</p><p>/etc/rc.local<br
/> #!/bin/sh<br
/> #other stuff will be here probably, put your stuff at the end</p><p>echo &#8220;Hello, you&#8217;ve just successfully gained access to Maxx&#8217;s computer&#8221; &gt; /etc/motd<br
/> cat /proc/version &gt;&gt; /etc/motd<br
/> echo `uname -a` &gt;&gt; /etc/motd</p><p>and so on. you are printing text and the output of programs to the file /etc/motd using shell syntax (the little backticks mean &#8220;interpret as a command to run&#8221; and echo  means &#8220;print this&#8221; and &gt; means &#8220;create a file and send this to it&#8221; and &#8220;&gt;&gt; means append this to the end of this file&#8221;</p><p>generally, motd will be printed on login (&#8220;message of the day&#8221;, quite old school, some systems might not have it I guess. My Scientific Linux 6.1 does. I think ubuntu does. maybe not.)</p><p>if not, you can make it yourself and have it in everyone&#8217;s .bashrc by editing /etc/skel. For that matter you can put anything you want in .bashrc or .profile and it will run whevever a shell is opened (a bash shell obviously).</p><p> /proc isn&#8217;t usually somewhere you want to write, unless you know why you are doing it.</p> ]]></content:encoded> </item> <item><title>By: sams</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-57376</link> <dc:creator>sams</dc:creator> <pubDate>Mon, 18 Apr 2011 11:51:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-57376</guid> <description>thank u .. it works</description> <content:encoded><![CDATA[<p>thank u .. it works</p> ]]></content:encoded> </item> <item><title>By: Bryce H.</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-57362</link> <dc:creator>Bryce H.</dc:creator> <pubDate>Sun, 17 Apr 2011 10:06:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-57362</guid> <description>Oh it would be Gentoo. THANKS! answered my own question =P</description> <content:encoded><![CDATA[<p>Oh it would be Gentoo. THANKS! answered my own question =P</p> ]]></content:encoded> </item> <item><title>By: Bryce H.</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-57361</link> <dc:creator>Bryce H.</dc:creator> <pubDate>Sun, 17 Apr 2011 10:05:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-57361</guid> <description>I typed this in and it worked: cat /proc/version
And this came up : Linux version 2.6.34houkouonchi-web100-ioat-vlan (root@houkouonchi) (gcc version 4.1.2 (Gentoo 4.1.2)) #1 SMP Thu Oct 14 16:27:09 PDT 2010
What distro would this be??? I am running my linux through a data center that I have access to.</description> <content:encoded><![CDATA[<p>I typed this in and it worked: cat /proc/version</p><p>And this came up : Linux version 2.6.34houkouonchi-web100-ioat-vlan (root@houkouonchi) (gcc version 4.1.2 (Gentoo 4.1.2)) #1 SMP Thu Oct 14 16:27:09 PDT 2010</p><p>What distro would this be??? I am running my linux through a data center that I have access to.</p> ]]></content:encoded> </item> <item><title>By: ravi</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-56697</link> <dc:creator>ravi</dc:creator> <pubDate>Tue, 29 Mar 2011 04:22:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-56697</guid> <description>thnx... helps  lot</description> <content:encoded><![CDATA[<p>thnx&#8230; helps  lot</p> ]]></content:encoded> </item> <item><title>By: vikash</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-56351</link> <dc:creator>vikash</dc:creator> <pubDate>Thu, 17 Mar 2011 12:13:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-56351</guid> <description>Thanks for giving command cat /etc/*-release
Really this is useful
Thanks
Vikash</description> <content:encoded><![CDATA[<p>Thanks for giving command cat /etc/*-release<br
/> Really this is useful</p><p>Thanks<br
/> Vikash</p> ]]></content:encoded> </item> <item><title>By: smarcell</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-55952</link> <dc:creator>smarcell</dc:creator> <pubDate>Wed, 23 Feb 2011 17:18:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-55952</guid> <description>Also try:
$ cat /etc/[A-Za-z]*[_-][rv]e[lr]*</description> <content:encoded><![CDATA[<p>Also try:</p><p>$ cat /etc/[A-Za-z]*[_-][rv]e[lr]*</p> ]]></content:encoded> </item> <item><title>By: Bhaskar Rimmalapudi</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-55206</link> <dc:creator>Bhaskar Rimmalapudi</dc:creator> <pubDate>Thu, 27 Jan 2011 18:16:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-55206</guid> <description>This solution works perfect.
uname -a</description> <content:encoded><![CDATA[<p>This solution works perfect.</p><p>uname -a</p> ]]></content:encoded> </item> <item><title>By: tommed</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-53251</link> <dc:creator>tommed</dc:creator> <pubDate>Wed, 22 Dec 2010 10:15:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-53251</guid> <description>/etc/issue works for Debian too! I use something like this:
&lt;pre&gt;
if [ &quot;`cat /etc/issue &#124; grep Debian &#124; wc -l`&quot; == &quot;1&quot; ]; then
echo &quot;is debian&quot;
else
cat /etc/issue # write out distro name
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>/etc/issue works for Debian too! I use something like this:</p><pre>
if [ "`cat /etc/issue | grep Debian | wc -l`" == "1" ]; then
    echo "is debian"
else
   cat /etc/issue # write out distro name
</pre>]]></content:encoded> </item> <item><title>By: Roshan.Ahtina</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-51515</link> <dc:creator>Roshan.Ahtina</dc:creator> <pubDate>Wed, 08 Dec 2010 09:18:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-51515</guid> <description>hi guys
please tyr
FOR UNIX:
#cat  /etc/issue
#cat /etc/*-release
#cat /proc/version
#uname -a
FOR Debai/slackware:
#cat /etc/*version</description> <content:encoded><![CDATA[<p>hi guys<br
/> please tyr<br
/> FOR UNIX:<br
/> #cat  /etc/issue<br
/> #cat /etc/*-release<br
/> #cat /proc/version<br
/> #uname -a</p><p>FOR Debai/slackware:<br
/> #cat /etc/*version</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-51294</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Sat, 04 Dec 2010 12:14:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-51294</guid> <description>Your distribution is RHEL and your kernel version is 2.6.9-34.0.1.
Both are different.</description> <content:encoded><![CDATA[<p>Your distribution is RHEL and your kernel version is 2.6.9-34.0.1.</p><p>Both are different.</p> ]]></content:encoded> </item> <item><title>By: Pietro</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-51290</link> <dc:creator>Pietro</dc:creator> <pubDate>Sat, 04 Dec 2010 05:18:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-51290</guid> <description>I&#039;m on rhel .. if I type cat /etc/*release I get:
Red Hat Enterprise Linux WS release 4 (Nahant Update 3)
but if I type cat /proc/version I get:
Linux version 2.6.9-34.0.1.EL.ADSKsmp (root@oka) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2))
I&#039;m confused :(  so what&#039;s my distribution??</description> <content:encoded><![CDATA[<p>I&#8217;m on rhel .. if I type cat /etc/*release I get:<br
/> Red Hat Enterprise Linux WS release 4 (Nahant Update 3)</p><p>but if I type cat /proc/version I get:<br
/> Linux version 2.6.9-34.0.1.EL.ADSKsmp (root@oka) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2))</p><p>I&#8217;m confused :(  so what&#8217;s my distribution??</p> ]]></content:encoded> </item> <item><title>By: takizo</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-49532</link> <dc:creator>takizo</dc:creator> <pubDate>Wed, 15 Sep 2010 08:11:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-49532</guid> <description>Thanks. Was digging few old linux machines and found this works. Running very old ubuntu ;)</description> <content:encoded><![CDATA[<p>Thanks. Was digging few old linux machines and found this works. Running very old ubuntu ;)</p> ]]></content:encoded> </item> <item><title>By: jamos</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-46861</link> <dc:creator>jamos</dc:creator> <pubDate>Tue, 13 Apr 2010 11:50:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-46861</guid> <description>Hi Daniel, I think your solution will only give the hostname, Kernel, arhitecture etc, but NOT the &quot;distribution name&quot; as is quoted on the question. Havent checked on anyother distro, but at least thats what happens on my CentOS 5.4, the other solutions seem to work.
&lt;code&gt;
[root@myhostname ~]# uname -a
Linux myhostname.mydomanin.com 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Hi Daniel, I think your solution will only give the hostname, Kernel, arhitecture etc, but NOT the &#8220;distribution name&#8221; as is quoted on the question. Havent checked on anyother distro, but at least thats what happens on my CentOS 5.4, the other solutions seem to work.</p><p><code><br
/> [root@myhostname ~]# uname -a<br
/> Linux myhostname.mydomanin.com 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux</p><p></code></p> ]]></content:encoded> </item> <item><title>By: Tibi</title><link>http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-46817</link> <dc:creator>Tibi</dc:creator> <pubDate>Fri, 09 Apr 2010 08:09:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/#comment-46817</guid> <description>Worked perfectly ;)</description> <content:encoded><![CDATA[<p>Worked perfectly ;)</p> ]]></content:encoded> </item> </channel> </rss>
