Find if AWS instance is running Amazon Linux 1 or 2? : <p>In AWS I need to add amazon linux instance to domain based on this <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/join_linux_instance.html" rel="noreferrer">article</a>.
However how do i know which Amazon Linux version the instance is using.
I do not have access to AWS console. But i do have access to actual instance.
What linux command i should be using.</p>

<p>I use <code>uname -srm</code> command which returns <code>Linux 4.4.0-1057-aws x86_64</code></p>

<p>Not sure if this is Amazon Linux 1 or Amazon Linux 2</p>
