Linux OS version

Use cat /etc/os-release

e.g.

cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2017.09"

or

cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"

Leave a Reply

Your email address will not be published. Required fields are marked *