Linux下查看操作系统的位数和系统名称版本信息
Linux下如何明確地查看操作系統的位數
如何知曉操作系統是32位還是64位?這里介紹一種簡單的方式:
[plain]
[root@localhost mysql-5.1.57]# getconf LONG_BIT
64
通過上面操作,我們可以很方便看到是64位。我的版本信息如下:
[plain]
[root@localhost mysql-5.1.57]# lsb_release -a
LSB 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-noarch
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final
如果你的顯示不出來,請man getconf,查看下幫助。
原文出自【比特網】,轉載請保留原文鏈接:http://soft.chinabyte.com/os/327/12347827.shtml
轉載于:https://www.cnblogs.com/chenjianhong/p/4144758.html
總結
以上是生活随笔為你收集整理的Linux下查看操作系统的位数和系统名称版本信息的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux下C++动态链接C++库示例详
- 下一篇: PB的setfilter()和modif