0


确定Mac\Linux系统的架构类型是 x86-64(amd64),还是 arm64 架构

我们在下载软件或镜像时会有很多版本,那需要根据我们的系统架构选择正确的软件或镜像版本。

要确定你的系统使用的是 x86-64(amd64) 还是 arm64 架构,可以使用以下方法之一:

  1. 使用 uname 命令: 打开终端,并运行以下命令:uname-m- 在MAC中: 如果输出结果是 x86_64,则表示你的系统是 x86-64 架构。 如果输出结果是 arm64,则表示你的系统是 arm64 架构。- 在 Linux中 如果输出结果是 x86_64,则表示你的系统是 x86-64 架构。 如果输出结果是 aarch64,则表示你的系统是 arm64 架构
  2. 使用 arch 命令: 在终端中运行以下命令:arch- 在MAC中: 如果输出结果是 x86_64,则表示你的系统是 x86-64 架构。 如果输出结果是 arm64,则表示你的系统是 arm64 架构。- 在 Linux中 如果输出结果是 x86_64,则表示你的系统是 x86-64 架构。 如果输出结果是 aarch64,则表示你的系统是 arm64 架构
  3. 查看系统信息:system_profiler SPHardwareDataType 在终端中运行以下命令:- 在MAC中:system_profiler SPHardwareDataType如果输出包含 “Processor Name: Apple M1” 或者 “Chip: Apple M1” ,表示你的系统是 arm64 架构。 如果输出包含 “Processor Name: Intel Core” 或者 “Chip: Intel Core” ,表示你的系统是 x86-64 架构。- 在 Linux中lscpu |grep"Architecture"如果输出结果是 “Architecture: x86_64”,则表示你的系统是 x86-64 架构。 如果输出结果是 “Architecture: aarch64”,则表示你的系统是 arm64 架构
标签: macos linux 架构

本文转载自: https://blog.csdn.net/trinityleo5/article/details/132631600
版权归原作者 小小小熊猫5 所有, 如有侵权,请联系我们删除。

“确定Mac\Linux系统的架构类型是 x86-64(amd64),还是 arm64 架构”的评论:

还没有评论