How to Check Your CentOS Version

The following command works with all CentOS versions.

cat /etc/centos-release


You should receive a result similar to the following:

CentOS release 6.5 (Final)


You can also use:

cat /etc/redhat-release

  • 34 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

How to List Compiled PHP Modules from Command Line

Pre-Flight Check These instructions are intended specifically for listing compiled PHP modules...

How to Install or Uninstall PECL Extensions

Pre-Flight Check These instructions are intended specifically for installing or uninstalling...

How to Install the MongoDB PHP Driver (Extension) on CentOS 6

Step 1: Setup Environment, Install PHP Extension & Application Repository (PEAR) As a matter...

How to Add a User and Grant Root Privileges on CentOS 6.5

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...

How to Add a User and Grant Root Privileges on Ubuntu 14.04

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...