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

    Thanks

  2. #2
    Join Date
    Aug 2003
    Location
    Pittsburgh
    Posts
    3,490
    Perhaps try cat /etc/release

  3. #3
    Hmm did i do it correctly

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

  4. #4
    Join Date
    Jan 2008
    Location
    United Kingdom
    Posts
    414
    Try:

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

  5. #5
    Join Date
    Mar 2009
    Location
    /home/khunj
    Posts
    433
    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. #6
    Join Date
    Apr 2007
    Location
    United Kingdom
    Posts
    1,861
    cat /etc/redhat-release

  7. #7
    # cat /etc/issue works

    Thank guys

  8. #8
    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.

  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
    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
    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
    www.serve-you.net

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

  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
  •