如何查看linux是多少位及linux版本

2018-03-21  本文已影响0人  小宇cxy

查看linux机器是32位还是64位的方法:

file /sbin/init 或者file /bin/ls

/sbin/init: ELF64-bitLSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

查看linux版本

 cat /etc/issue                 适用于所有的linux版本

cat /etc/redhat-release    适用于redhat系列的系统

上一篇下一篇

猜你喜欢

热点阅读