Difference between revisions of "Show Linux Version"
From MS Computech
(Created page with "'''วิธีการ แสดง Version ของ Linux''' <br /> <br /> Show Linux Distribution/Distro information<br /> <pre> lsb_release -a </pre> Output: <pre> root@...") |
|||
Line 22: | Line 22: | ||
root@ultima:~# cat /proc/version | root@ultima:~# cat /proc/version | ||
Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) ([email protected]) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012 | Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) ([email protected]) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012 | ||
+ | </pre> | ||
+ | <pre> | ||
+ | [root@msc ~]# cat /etc/redhat-release | ||
+ | CentOS release 6.3 (Final) | ||
+ | </pre> | ||
+ | <pre> | ||
+ | [root@msc ~]# rpm -q centos-release | ||
+ | centos-release-6-3.el6.centos.9.i686 | ||
</pre> | </pre> |
Latest revision as of 14:12, 14 September 2012
วิธีการ แสดง Version ของ Linux
Show Linux Distribution/Distro information
lsb_release -a
Output:
root@ultima:~# lsb_release -a Distributor ID: Debian Description: Debian GNU/Linux 6.0.4 (squeeze) Release: 6.0.4 Codename: squeeze
Show Linux Version
cat /proc/version
Output:
root@ultima:~# cat /proc/version Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) ([email protected]) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012
[root@msc ~]# cat /etc/redhat-release CentOS release 6.3 (Final)
[root@msc ~]# rpm -q centos-release centos-release-6-3.el6.centos.9.i686