Last active
July 3, 2019 23:25
-
-
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.
This file contains 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
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