title: How to detect 386, amd64, arm, or arm64 OS architecture via shell/bash
body: <p>I'm looking for a POSIX shell/bash command to determine if the OS architecture is <code>386</code>, <code>amd64</code>, <code>arm</code>, or <code>arm64</code>?</p>