因为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
Version
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 systemcat /etc/redhat-release
Or
getconf LONG_BIT
uname -a
x86_64 64-bit
Others i386 and i686 are 32-bit