因为VPS上要装一个软件,但是不知道当前这个操作系统是32位还是64位的,所以想问问如何判断系统是多少位?
闭关修行中......
雷雷
arch 指令即可
uname -a
lsb_release -a
file /bin/ls 或則到根目錄下面看一下有沒有lib64這個目錄。有就是64位的系統
file /bin/ls
lib64
cat /etc/redhat-release 或getconf LONG_BIT
cat /etc/redhat-release
getconf LONG_BIT
x86_64 64位的其他 i386,i686都是32位的
雷雷
arch 指令即可
位數
uname -a
![](http://img.php.cn/upload/image/000/000/000/10555e4c827c885ccd3ed9161a491be5-0.png)
![](http://img.php.cn/upload/image/000/000/000/ef7896eabdd811a680305b2f5d1e201d-1.png)
版本
lsb_release -a
![](http://img.php.cn/upload/image/000/000/000/ef7896eabdd811a680305b2f5d1e201d-2.png)
file /bin/ls
或則到根目錄下面看一下有沒有
lib64
這個目錄。有就是64位的系統cat /etc/redhat-release
或
getconf LONG_BIT
uname -a
x86_64 64位的
其他 i386,i686都是32位的