How to Check Amazon Linux Version (EC2 Instance)

To check the version of Amazon Linux installed on an EC2 instance, you can use the following command in the terminal:

cat /etc/os-release

This will display the version information, including the version number, in the output. For example:

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/"

Leave a Comment