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?
Reply

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
  #1  
Old
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

Thanks



Sponsored Links
  #2  
Old
Retired Moderator
 
Join Date: Aug 2003
Location: Pittsburgh
Posts: 3,478
Perhaps try cat /etc/release

__________________
WHT HelpDesk

  #3  
Old
Junior Guru
 
Join Date: Apr 2006
Posts: 176
Hmm did i do it correctly

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

Sponsored Links
  #4  
Old
Aspiring Evangelist
 
Join Date: Jan 2008
Location: United Kingdom
Posts: 408
Try:

Code:
cat /proc/version
And post the output here.

  #5  
Old
Aspiring Evangelist
 
Join Date: Mar 2009
Location: /home/khunj
Posts: 391
Try :

# cat /etc/*{version,release}

or :

# cat /etc/issue

__________________
NinTechNet
★ NinjaFirewall : Web Application Firewall for PHP and WordPress.
★ NinjaMonitoring : Monitor your website for suspicious activities.

  #6  
Old
Premium Member
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,660
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 |

  #7  
Old
Junior Guru
 
Join Date: Apr 2006
Posts: 176
# cat /etc/issue works

Thank guys

  #8  
Old
Eternal Learner
 
Join Date: Jul 2007
Posts: 1,994
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.

  #9  
Old
New Member
 
Join Date: Jan 2013
Posts: 1
* /etc/issue file is empty

Quote:
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.

  #10  
Old
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.

Quote:
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)

Quote:
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

Quote:
cat /proc/version

__________________
Affordable web hosting, design, & domain registration services since 2001
www.serve-you.net

  #11  
Old
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

Reply

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 TheWhir.com
Title Type Date Posted
Linode Releases CLI Tool for Cloud Platform Web Hosting News 2014-01-29 17:15:43
tmzVPS Listing 2014-10-22 09:44:50
tmzVPS Listing 2014-10-22 09:48:49
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
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?