Divi WordPress Theme

How to check Cent OS version from SSH

Topic: How to check Cent OS version from SSH  (Read 13826 times)

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 660
  • iTrader: +153/-0
    • View Profile
How to check Cent OS version from SSH
« 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
VPS Hosting - AccuWebHosting

Offline digitalpoint

  • New Member
  • *
  • Posts: 45
  • iTrader: +0/-0
    • View Profile
Re: How to check Cent OS version from SSH
« Reply #1 on: April 20, 2009, 09:02:17 AM »
How can I get version details for Red Hat Enterprise server?

Thanks,

$digitalpoint$

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 660
  • iTrader: +153/-0
    • View Profile
Re: How to check Cent OS version from SSH
« Reply #2 on: March 20, 2014, 03:11:04 PM »
Hi,

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

cat /etc/*release*

- Kailash

hmb-willem

Re: How to check Cent OS version from SSH
« Reply #3 on: January 28, 2016, 01:28:48 PM »
You can use following command too

cat /etc/redhat-release

Offline gexacor

  • Newbie
  • *
  • Posts: 6
  • iTrader: +0/-0
    • View Profile
Re: How to check Cent OS version from SSH
« Reply #4 on: July 10, 2016, 02:34:22 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.

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 660
  • iTrader: +153/-0
    • View Profile
Re: How to check Cent OS version from SSH
« Reply #5 on: July 11, 2016, 03:41:16 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.

Offline onliveserver

  • New Member
  • *
  • Posts: 26
  • iTrader: +0/-0
    • View Profile
Re: How to check Cent OS version from SSH
« Reply #6 on: February 01, 2018, 12:36:17 PM »
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

Offline onliveserver

  • New Member
  • *
  • Posts: 26
  • iTrader: +0/-0
    • View Profile
Re: How to check Cent OS version from SSH
« Reply #7 on: April 02, 2018, 04:44:55 PM »
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,)

Offline SwissLayer.

  • Newbie
  • *
  • Posts: 5
  • iTrader: +0/-0
    • View Profile
Re: How to check Cent OS version from SSH
« Reply #8 on: July 24, 2021, 01:46:48 AM »
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.
Shopify Divi WordPress Theme
Tags:

Check MySQL service uptime through command line

Started by KailashBoard How Tos

Replies: 2
Views: 21355
Last post November 22, 2011, 10:03:24 PM
by Mrtu92
two ASP.Net version on one domain

Started by MikeBoard Hosting Software and Control Panels

Replies: 4
Views: 5540
Last post April 20, 2009, 04:46:05 PM
by gondaliya
command to check Exim mail queue on server

Started by digitalpointBoard cPanel/WHM

Replies: 4
Views: 11842
Last post December 01, 2009, 10:49:16 PM
by kvchosting
cPanel and WHM version 11 released

Started by KailashBoard Other Web Hosting Stuff

Replies: 1
Views: 4079
Last post July 01, 2007, 02:05:54 PM
by Kailash
check perl file syntax through shell access

Started by KailashBoard cPanel/WHM

Replies: 0
Views: 3375
Last post July 29, 2007, 01:02:07 PM
by Kailash