Last active
May 7, 2019 02:26
-
-
Save o0-o/a255312c6a111bc46b07a1e636be1cb7 to your computer and use it in GitHub Desktop.
[CPU Architecture] Prints the CPU architecture #Shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cpu_arch.sh | |
| uname -m | | |
| sed 's/amd64/x86_64/' || #x86_64 is the generic name for amd64 | |
| exit 1 #failure | |
| exit 0 #success | |
| #https://forums.fedoraforum.org/showthread.php?186239-x86_64-vs-amd64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment