Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Some command to check CentOS version
# https://forum.directadmin.com/showthread.php?t=15878
cat /etc/*release*
cat /etc/centos-release # http://www.liquidweb.com/kb/how-to-check-your-centos-version/
cat /etc/redhat-release
# https://linuxconfig.org/how-to-check-centos-version
# the later two may need some package to install
rpm --query centos-release
hostnamectl
lsb_release -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment