Answers for "get OS arch type uname"

0

get OS arch type uname

case $(uname -m) in
x86_64)
    ARCH=x64  # or AMD64 or Intel64 or whatever
    ;;
i*86)
    ARCH=x86  # or IA32 or Intel32 or whatever
    ;;
*)
    # leave ARCH as-is
    ;;
esac
Posted by: Guest on June-04-2021

Browse Popular Code Answers by Language