Created
September 5, 2022 21:25
-
-
Save v0lkan/866e23b54a17d103524991e8a1512022 to your computer and use it in GitHub Desktop.
Get the Architecture and OS of your Linux Distro
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
export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) | |
export OS=$(uname | awk '{print tolower($0)}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment