Skip to content

Instantly share code, notes, and snippets.

@Shellbye
Created April 26, 2016 06:18
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 Shellbye/03dc1619cd92db83db865a59317b7a4b to your computer and use it in GitHub Desktop.
Save Shellbye/03dc1619cd92db83db865a59317b7a4b to your computer and use it in GitHub Desktop.
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