Skip to content

Instantly share code, notes, and snippets.

@mranawake
Last active July 3, 2019 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mranawake/8d67ef5f4c5610a5b6a089d7d96679e7 to your computer and use it in GitHub Desktop.
Save mranawake/8d67ef5f4c5610a5b6a089d7d96679e7 to your computer and use it in GitHub Desktop.
Few useful commands to find the Amazon Linux version on your EC2. Sometimes you need to know the version when installing 3rd party libraries.
cat /etc/system-release
# Amazon Linux release 2 (Karoo)
uname -a
# Linux ip-10-0-0-102.ec2.internal 4.14.101-91.76.amzn2.x86_64 #1 SMP Tue Feb 19 17:51:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/os-release
# NAME="Amazon Linux"
# VERSION="2"
# ID="amzn"
# ID_LIKE="centos rhel fedora"
# VERSION_ID="2"
# PRETTY_NAME="Amazon Linux 2"
# ANSI_COLOR="0;33"
# CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
# HOME_URL="https://amazonlinux.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment