因为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位的