查看Linux是32位还是63位的方法

方法1:uname -a

  命令行输入:uname -a

  输出:Linux DESKTOP-QGC4M3L 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux  //64位的话,最后是x86_64 x86_64 x86_64 GNU/Linux

 

方法2:getconf LONG_BIT

  命令行输入:getconf LONG_BIT

  输出:64  //64位输出64,32位输出32

 

方法3:file

  命令行输入:file /bin/ls  //查看ls文件的信息

  输出:/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=eca98eeadafddff44caf37ae3d4b227132861218, stripped  //64位的输出

  

posted @ 2017-07-24 14:16  yongfengnice  阅读(643)  评论(0编辑  收藏  举报