Results 1 to 11 of 11
Hybrid View
-
09-05-2009, 07:54 AM #1Junior Guru
- Join Date
- Apr 2006
- Posts
- 185
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
-
09-05-2009, 07:55 AM #2Retired Moderator
- Join Date
- Aug 2003
- Location
- Pittsburgh
- Posts
- 3,490
Perhaps try cat /etc/release
-
09-05-2009, 07:58 AM #3Junior Guru
- Join Date
- Apr 2006
- Posts
- 185
Hmm did i do it correctly
[root@web1 ~]# cat /etc/release
cat: /etc/release: No such file or directory
[root@web1 ~]#
-
09-05-2009, 08:05 AM #4Aspiring Evangelist
- Join Date
- Jan 2008
- Location
- United Kingdom
- Posts
- 414
Try:
Code:cat /proc/version
-
09-05-2009, 08:06 AM #5Aspiring Evangelist
- Join Date
- Mar 2009
- Location
- /home/khunj
- Posts
- 433
Try :
# cat /etc/*{version,release}
or :
# cat /etc/issueNinTechNet
★ NinjaFirewall : Web Application Firewall for PHP and WordPress.
★ NinjaMonitoring : Monitor your website for suspicious activities.
-
01-31-2013, 04:27 AM #6New Member
- Join Date
- Jan 2013
- Posts
- 1
-
09-05-2009, 08:26 AM #7Web Hosting Master
- Join Date
- Apr 2007
- Location
- United Kingdom
- Posts
- 1,861
cat /etc/redhat-release
-
09-05-2009, 08:29 AM #8Junior Guru
- Join Date
- Apr 2006
- Posts
- 185
# cat /etc/issue works
Thank guys
-
09-05-2009, 12:42 PM #9Eternal Learner
- Join Date
- Jul 2007
- Posts
- 2,051
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.
-
01-31-2013, 12:50 PM #10Web Hosting Master
- Join Date
- Nov 2001
- Location
- Ashburn, VA
- Posts
- 1,207
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
uname -a
You Can also get some clues from
cat /proc/versionAffordable web hosting, design, & domain registration services since 2001
www.serve-you.net
-
01-31-2013, 01:05 PM #11Web Hosting Master
- Join Date
- Oct 2007
- Location
- 9.9N 76.2E , Planet Earth
- Posts
- 1,003
lsb_release -a
If on Ubuntu∞A U T O M 8 N . C O M
High Available webstack for cPanel
Active-Active redundancy and High Availability plugin for cPanel
Similar Threads
-
What command to check for bad sector
By rin7788 in forum Hosting Security and TechnologyReplies: 3Last Post: 12-22-2008, 03:06 PM -
Is there a command to check the CPU temperature
By pprabhu in forum Dedicated ServerReplies: 11Last Post: 09-22-2008, 03:03 PM -
Check RAM usage command?
By Chikita in forum Hosting Security and TechnologyReplies: 4Last Post: 03-11-2007, 06:13 PM -
what command to check the path to Access logs on a unix server?
By ivytony in forum VPS HostingReplies: 3Last Post: 05-24-2006, 09:36 PM -
Ensim Version check command?
By holiday in forum Hosting Software and Control PanelsReplies: 2Last Post: 04-20-2004, 01:18 AM