系统
发行版本
—
内核版本、位数
RedHat
cat /etc/issue
cat /etc/%ignore_a_1%hat-release
lsb_release -a
CentOS
cat /etc/issue
cat /etc/centos-release
cat /proc/version
Debian
cat /etc/issue
cat /etc/debian_version
cat /proc/version
Ubuntu
cat /etc/issue
cat /etc/lsb_release
cat /proc/version
Oracle
cat /etc/issue
cat /etc/oracle-release
lsb_release -a
RedHat
查看系统发行版本
[root@getlnx05 ~]# cat /etc/issueRed Hat Enterprise Linux Server release 5.7 (Tikanga)Kernel \r on an \m
通过cat /etc/redhat-release也查到看到相关的信息。
查看系统内核版本、位数
[root@getlnx05 ~]# lsb_release -aLSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarchDistributor ID: RedHatEnterpriseServerDescription: Red Hat Enterprise Linux Server release 5.7 (Tikanga)Release: 5.7Codename: Tikanga
LSB Version项显示的是系统的内核版本,其中amd64表示系统是64位的。
CentOS
查看系统发行版本 cat /etc/issue
[chenyurong@localhost local]$ cat /etc/issueCentOS release 6.5 (Final)Kernel \r on an \m
通过cat /etc/centos-release也可以查询到一样的信息。
查看系统内核版本、位数 more /proc/version
[chenyurong@localhost local]$ cat /proc/versionLinux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 2013
Linux version 2.6.32-431.el6.x86_64显示了Linux的版本,x86_64显示了是64位的系统。通过uname -r也可以查到相关信息。
Oracle Linux
查看系统发行版本
[root@DB-Server ~]# cat /etc/issueOracle Linux Server release 5.7Kernel \r on an \m
通过cat /etc/oracle-release也可以查询到相关信息。
查看系统内核版本、位数
[root@DB-Server ~]# lsb_release -aLSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarchDistributor ID: EnterpriseEnterpriseServerDescription: Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)Release: 5.7Codename: Carthage
LSB Version显示的是系统的内核版本,其中amd64表示系统是64位的。
所有命令适用范围总结
查看系统发行版本
命令
适用范围
lsb_release -a
所有Linux发行版
cat /etc/redhat-release
RedHat系Linux
cat /etc/issue
所有Linux发行版
查看系统内核位数
命令
适用范围
uname -a、uname -r
所有Linux发行版
cat /proc/version
所有Linux发行版
以上就是Linux版本信息如何查看的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/128763.html
微信扫一扫
支付宝扫一扫