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

Thanks



Sponsored Links
  #2  
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

  #3  
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

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

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

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

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

# cat /etc/*{version,release}

or :

# cat /etc/issue

__________________
NinTechNet
★ NinjaMonitoring : Monitor your website for suspicious activities.
★ NinjaFirewall : Web Application Firewall for PHP (WordPress plugin available).
★ NinjaRecovery : Malware removal & hacking recovery.


  #6  
Old 09-05-2009, 08:26 AM
Dan_EZPZ Dan_EZPZ is offline
Premium Member
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,648
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 09-05-2009, 08:29 AM
kohkindachi kohkindachi is offline
Junior Guru
 
Join Date: Apr 2006
Posts: 176
# cat /etc/issue works

Thank guys

  #8  
Old 09-05-2009, 12:42 PM
prashant1979 prashant1979 is offline
Eternal Learner
 
Join Date: Jul 2007
Posts: 1,911
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 01-31-2013, 04:27 AM
gprasanthkumar gprasanthkumar is offline
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 01-31-2013, 12:50 PM
serve-you serve-you is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: Ashburn, VA
Posts: 1,205
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 01-31-2013, 01:05 PM
gnusys gnusys is offline
Junior Guru
 
Join Date: Oct 2007
Location: Kochi,INDIA
Posts: 185
lsb_release -a

If on Ubuntu

__________________
SysAlly-cPanel,Plesk (Linux,Windows) server management
cpXstack -GPL licensed nginX+PHP-FPM stack for Cpanel
✉ info [at] piserve [dot] com
☏ +91-484-3191-121 ☏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-04-24 00:30:27
tmzVPS Listing 2014-04-24 00:32:43
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?
Advertisement:
Web Hosting News:



 

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?