Determine whether the architecture type of the Mac\Linux system is x86-64 (amd64) or arm64 architecture

When we download software or images, there will be many versions, so we need to choose the correct software or image version according to our system architecture.

To determine whether your system uses the x86-64 (amd64) or arm64 architecture, use one of the following methods:

  1. Using unamethe command:
    Open a terminal, and run the following command:

    uname -m
    
    • In MAC:
      If the output is x86_64 , it means your system is x86-64 architecture .
      If the output is arm64 , it means your system is arm64 architecture .

    • In Linux,
      if the output is x86_64 , it means that your system is an x86-64 architecture .
      If the output is aarch64 , it means your system is arm64 architecture .

  2. Using archthe command:
    Run the following command in a terminal:

    arch
    
    • In MAC:
      If the output is x86_64 , it means your system is x86-64 architecture .
      If the output is arm64 , it means your system is arm64 architecture .

    • In Linux,
      if the output is x86_64 , it means that your system is an x86-64 architecture .
      If the output is aarch64 , it means your system is arm64 architecture .

  3. View system information: system_profiler SPHardwareDataType
    Run the following command in a terminal:

    • In MAC:

      system_profiler SPHardwareDataType
      

      If the output contains "Processor Name: Apple M1 " or "Chip: Apple M1 ", it means your system is arm64 architecture .
      If the output contains "Processor Name: Intel Core " or "Chip: Intel Core ", it means that your system is x86-64 architecture .

    • in linux

      lscpu | grep "Architecture"
      

      If the output is "Architecture: x86_64 ", it means that your system is an x86-64 architecture .
      If the output is "Architecture: aarch64 ", it means that your system is arm64 architecture .

Guess you like

Origin blog.csdn.net/trinityleo5/article/details/132631600