• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers


Jetpack
Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

WordPress Hosting Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

How to check Cent OS version from SSH

Started by Kailash, April 11, 2009, 12:48:59 PM


WordPress Hosting


Kailash

If you are not sure about the Cent OS, you can check it from SSH. On SSH console shot out following command:

cat /etc/*release*

It will give you the version details installed on your server.

Kailash

digitalpoint

How can I get version details for Red Hat Enterprise server?

Thanks,

$digitalpoint$

Kailash

Hi,

The same command should work for RedHat Enterprise server as well:

cat /etc/*release*

- Kailash

hmb-willem

You can use following command too

cat /etc/redhat-release

gexacor

Quote from: Kailash on April 11, 2009, 12:48:59 PM
If you are not sure about the Cent OS, you can check it from SSH. On SSH console shot out following command:

cat /etc/*release*

It will give you the version details installed on your server.

Kailash

The standard way to check your Linux version is using 'uname -a' command
Your version is CentOS specific and can give a wrong or no result at another Linux distribution.


Kailash

Quote from: gexacor on July 10, 2016, 02:34:22 PM
The standard way to check your Linux version is using 'uname -a' command
Your version is CentOS specific and can give a wrong or no result at another Linux distribution.
The topic itself, how to check CentOS version and this command does not mean for any other distro. Also, your command is totally wrong. uname -a will give Kernel details not operating system information.

onliveserver

You can check the Centos version via command
cat /etc/redhat-release
In case of other OS, you can check the version via command.
cat /etc/os-release

onliveserver

Hello,

There is different-2 command to check OS version.
1. cat   /etc/redhat-release (Centos/redhat)
2. cat  /etc/os-release ( All Linux based OS like debian, Fedora, Ubantu,)

SwissLayer.

Hi you can use the following commands:
lsb_release -d   ( Requires redhat-lsb package to be installed before execution.)
rpm -E %{rhel} 
rpm --eval %{centos_ver}
cat /etc/centos-release

hope this can help you.

Divya165

You can try this suggested command cat /etc/redhat-release