Results 1 to 11 of 11
  1. #1

    * 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


  2. #2
    Join Date
    Aug 2003
    Perhaps try cat /etc/release

  3. #3
    Hmm did i do it correctly

    [[email protected] ~]# cat /etc/release
    cat: /etc/release: No such file or directory
    [[email protected] ~]#

  4. #4
    Join Date
    Jan 2008
    United Kingdom

    cat /proc/version
    And post the output here.

  5. #5
    Join Date
    Mar 2009
    Try :

    # cat /etc/*{version,release}

    or :

    # cat /etc/issue
    ★ NinjaFirewall : Web Application Firewall for PHP and WordPress.
    ★ NinjaMonitoring : Monitor your website for suspicious activities.

  6. #6
    Join Date
    Apr 2007
    United Kingdom
    cat /etc/redhat-release
    EZPZ Hosting - Dependable and Affordable Web Hosting
    LiteSpeed SSD Powered cPanel Shared & Reseller Hosting | Budget VPS, Managed VPS and Dedicated
    Reseller Hosting Specialists | WHMCS-Based End User Support | Unlimited SSLs | UK and USA
    99.9% Uptime Guarantee | 24/7 Support | 30 Day Money Back Guarantee

  7. #7
    # cat /etc/issue works

    Thank guys

  8. #8
    Join Date
    Jul 2007
    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. #9

    * /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. #10
    Join Date
    Nov 2001
    Ashburn, VA
    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

  11. #11
    Join Date
    Oct 2007
    lsb_release -a

    If on Ubuntu
    Plug in Nginx & Plug in performance on cPanel systems
    WebOps on cPanel . Deploy webapps to multiple servers and scale horizontally

Similar Threads

  1. What command to check for bad sector
    By rin7788 in forum Hosting Security and Technology
    Replies: 3
    Last Post: 12-22-2008, 03:06 PM
  2. Is there a command to check the CPU temperature
    By pprabhu in forum Dedicated Server
    Replies: 11
    Last Post: 09-22-2008, 03:03 PM
  3. Check RAM usage command?
    By Chikita in forum Hosting Security and Technology
    Replies: 4
    Last Post: 03-11-2007, 06:13 PM
  4. Replies: 3
    Last Post: 05-24-2006, 09:36 PM
  5. Ensim Version check command?
    By holiday in forum Hosting Software and Control Panels
    Replies: 2
    Last Post: 04-20-2004, 01:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts