因为VPS上要装一个软件,但是不知道当前这个操作系统是32位还是64位的,所以想问问如何判断系统是多少位?
闭关修行中......
$ uname -a
arch command is enough
uname -a
lsb_release -a
file /bin/ls Or go to the root directory to see if there is a lib64 directory. There is a 64-bit system
file /bin/ls
lib64
cat /etc/redhat-release Or getconf LONG_BIT
cat /etc/redhat-release
getconf LONG_BIT
x86_64 64-bit Others i386 and i686 are 32-bit
arch command is enough
Digits
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)
Version
lsb_release -a
![](http://img.php.cn/upload/image/000/000/000/ef7896eabdd811a680305b2f5d1e201d-2.png)
file /bin/ls
Or go to the root directory to see if there is a
lib64
directory. There is a 64-bit systemcat /etc/redhat-release
Or
getconf LONG_BIT
uname -a
x86_64 64-bit
Others i386 and i686 are 32-bit