ToB企服应用市场:ToB评测及商务社交产业平台

标题: 检察Linux系统架构的命令,检察linux系统是哪种架构:AMD、ARM、x86、x86_6 [打印本页]

作者: 用多少眼泪才能让你相信    时间: 11 小时前
标题: 检察Linux系统架构的命令,检察linux系统是哪种架构:AMD、ARM、x86、x86_6
1、检察内核版本


  1. (base) shl@zhihui-mint:~$ cat /proc/version
  2. Linux version 5.0.0-32-generic (buildd@lgw01-amd64-015) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019
  3. (base) shl@zhihui-mint:~$ uname -r
  4. 5.0.0-32-generic
  5. (base) shl@zhihui-mint:~$ uname -a
  6. Linux zhihui-mint 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
复制代码
2、检察linux版本信息


  1. (base) shl@zhihui-mint:~$ lsb_release -a
  2. No LSB modules are available.
  3. Distributor ID:        LinuxMint
  4. Description:        Linux Mint 19.3 Tricia
  5. Release:        19.3
  6. Codename:        tricia
  7. (base) shl@zhihui-mint:~$ cat /etc/issue
  8. Linux Mint 19.3 Tricia \n \l
复制代码
3、检察linux是64为照旧32位


  1. (base) shl@zhihui-mint:~$ getconf LONG_BIT
  2. 64
  3. (base) shl@zhihui-mint:~$ file /bin/ls
  4. /bin/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9567f9a28e66f4d7ec4baf31cfbf68d0410f0ae6, stripped
  5. (base) shl@zhihui-mint:~$
复制代码
4、直接检察系统的架构


  1. (base) shl@zhihui-mint:~$ dpkg --print-architecture
  2. amd64
  3. (base) shl@zhihui-mint:~$
  4. (base) shl@zhihui-mint:~$ arch
  5. x86_64
  6. (base) shl@zhihui-mint:~$
  7. (base) shl@zhihui-mint:~$ file /lib/systemd/systemd
  8. /lib/systemd/systemd: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=85c772a89c42ba78383dec576b414b2b953cbe41, stripped
  9. (base) shl@zhihui-mint:~$
复制代码
关于CPU架构是x86、x86_64、amd64的叫法区别
5 检察Mint系统对应的Ubuntu系统

参考
1、使用cat /etc/os-release命令也可以获取到 Ubuntu 代号
  1. (base) shl@zhihui-mint:~$ cat /etc/os-release
  2. NAME="Linux Mint"
  3. VERSION="19.3 (Tricia)"
  4. ID=linuxmint
  5. ID_LIKE=ubuntu
  6. PRETTY_NAME="Linux Mint 19.3"
  7. VERSION_ID="19.3"
  8. HOME_URL="https://www.linuxmint.com/"
  9. SUPPORT_URL="https://forums.linuxmint.com/"
  10. BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
  11. PRIVACY_POLICY_URL="https://www.linuxmint.com/"
  12. VERSION_CODENAME=tricia
  13. UBUNTU_CODENAME=bionic
  14. (base) shl@zhihui-mint:~$
复制代码
2、使用 cat /etc/upstream-release/lsb-release 只获取 Ubuntu 的基本信息
  1. (base) shl@zhihui-mint:~$ cat  /etc/upstream-release/lsb-release
  2. DISTRIB_ID=Ubuntu
  3. DISTRIB_RELEASE=18.04
  4. DISTRIB_CODENAME=bionic
  5. DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
  6. (base) shl@zhihui-mint:~$
复制代码
留意:
   x86_64,x64,AMD64基本上是同一个东西
  
现在用的intel/amd的桌面级CPU基本上都是x86_64,与之相对的arm、pcc等都不是x86_64








♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4