hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : What's the ssh command to check OS of server?

Forum Jump

What's the ssh command to check OS of server?

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Old 09-05-2009, 07:54 AM
kohkindachi kohkindachi is offline
Junior Guru
Join Date: Apr 2006
Posts: 176

What's the ssh command to check OS of server?

Hey guys may I ask what's the ssh command via putty to check my current server OS? Like Centos 5.3 etc


Sponsored Links
Old 09-05-2009, 07:55 AM
CArmstrong CArmstrong is offline
Retired Moderator
Join Date: Aug 2003
Location: Pittsburgh
Posts: 3,478
Perhaps try cat /etc/release

WHT HelpDesk

Old 09-05-2009, 07:58 AM
kohkindachi kohkindachi is offline
Junior Guru
Join Date: Apr 2006
Posts: 176
Hmm did i do it correctly

[root@web1 ~]# cat /etc/release
cat: /etc/release: No such file or directory
[root@web1 ~]#

Sponsored Links
Old 09-05-2009, 08:05 AM
Sam Robertson Sam Robertson is offline
Aspiring Evangelist
Join Date: Jan 2008
Location: United Kingdom
Posts: 408

cat /proc/version
And post the output here.

Old 09-05-2009, 08:06 AM
khunj khunj is offline
Aspiring Evangelist
Join Date: Mar 2009
Location: /home/khunj
Posts: 381
Try :

# cat /etc/*{version,release}

or :

# cat /etc/issue

★ NinjaMonitoring : Monitor your website for suspicious activities.
★ NinjaFirewall : Web Application Firewall for PHP (WordPress plugin available).

Old 09-05-2009, 08:26 AM
Dan_EZPZ Dan_EZPZ is offline
Premium Member
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,659
cat /etc/redhat-release

EZPZ Hosting - Dependable and Affordable UK and US Web Hosting
LiteSpeed Powered cPanel Shared with R1Soft and Softaculous | Budget VPS, Managed VPS and Dedicated | Shoutcast
Reseller Hosting Specialists | WHMCS-Based End User Support | Unlimited SSLs | CloudFlare
99.9% Uptime Guarantee | 24/7 Support | 30 Day Money Back Guarantee |

Old 09-05-2009, 08:29 AM
kohkindachi kohkindachi is offline
Junior Guru
Join Date: Apr 2006
Posts: 176
# cat /etc/issue works

Thank guys

Old 09-05-2009, 12:42 PM
prashant1979 prashant1979 is offline
Eternal Learner
Join Date: Jul 2007
Posts: 1,987
cat /etc/redhat-release works if it is RHEL, CentOS or Fedora.

Prashant T.

Don't run after Success. Run after Excellence and Success will soon follow.

Old 01-31-2013, 04:27 AM
gprasanthkumar gprasanthkumar is offline
New Member
Join Date: Jan 2013
Posts: 1
* /etc/issue file is empty

Originally Posted by khunj View Post
Try :

# cat /etc/*{version,release}

or :

# cat /etc/issue
I have the file /etc/issue in the linux system but the content is empty.

Is there any other way which OS is running on the server.

Old 01-31-2013, 12:50 PM
serve-you serve-you is offline
Web Hosting Master
Join Date: Nov 2001
Location: Ashburn, VA
Posts: 1,206
There's no one command that will tell you the exact OS/Version across all linux distros. /etc/issue is often modified, so this doesn't necessarily tell you anything about the OS.

cat /etc/*-release
will tell you for any RH based distro, and I believe ubuntu started using a release file as well. The best way to figure it out (will work on any linux OS)

uname -a
This will list the kernel version installed as well as whether it's 32 or 64-bit. You could then search for that kernel, as they are usually versioned specifically for each distro. This too isn't foolproof since someone could compile their own kernel, but you should be able to at least get an idea.

You Can also get some clues from

cat /proc/version

Affordable web hosting, design, & domain registration services since 2001

Old 01-31-2013, 01:05 PM
gnusys gnusys is offline
Junior Guru
Join Date: Oct 2007
Location: Kochi,INDIA
Posts: 186
lsb_release -a

If on Ubuntu

cpXstack -GPL licensed nginX+PHP-FPM stack for Cpanel
cpHstack -GPL licensed Apache Event MPM +PHP-FPM stack for Cpanel
✉ info [at] piserve [dot] com ☏skype: sys-ally


Similar Threads
Thread Thread Starter Forum Replies Last Post
What command to check for bad sector rin7788 Hosting Security and Technology 3 12-22-2008 03:06 PM
Is there a command to check the CPU temperature pprabhu Dedicated Server 11 09-22-2008 03:03 PM
Check RAM usage command? Chikita Hosting Security and Technology 4 03-11-2007 06:13 PM
what command to check the path to Access logs on a unix server? ivytony VPS Hosting 3 05-24-2006 09:36 PM
Ensim Version check command? holiday Hosting Software and Control Panels 2 04-20-2004 01:18 AM

Related posts from
Title Type Date Posted
Linode Releases CLI Tool for Cloud Platform Web Hosting News 2014-01-29 17:15:43
tmzVPS Listing 2014-09-20 00:42:26
tmzVPS Listing 2014-09-20 00:46:17
Apache Continues to Dominate Web Server Market in Netcraft May Survey Web Hosting News 2013-05-06 14:29:02
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?