Languages
[Edit]
EN

Bash - detect machine architecture (Intel/AMD, x86/x64, 32bit/64bit)

8 points
Created by:
Pearl-Hurley
559

In this short article, we would like to show how to check used machine architecture (Intel/AMD, x86/x64, 32bit/64bit) under Bash.

⚠️ Warning ⚠️: this solution works only for x86/x64 processors.

 

Quick solution:

 

Alternative solution

Edit

arch command prints machine hardware name same as uname -m command.

 

See also

Edit
  1. Bash - detect operating system

References

Edit
  1. Uname - Wikipedia
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join