Where can I find 'uname' outputs for the major Unix OS's?

Posted on 2005-04-27
Last Modified: 2013-12-26
I am writing a script and would like to be able to parse the output of the uname command (specifically the OS name, and OS version).  

For example, I know on a HP-UX 10.20 system, "uname -n" will respond with "HP-UX".

Where can I find the output for the following Unix operating systems:

AIX 4.3
AIX 5.2
Solaris 7,8,9
HP-UX 11i
Redhat Enterprise Server 2,3

I don't have access to these systems, otherwise I would run the command myself.

Question by:ddurmon
    LVL 48

    Accepted Solution


    uname -s  will report SunOS
    uname -r  will report the SunOS version number, ie: 5.7, 5.8 or 5.9

    Redhat ES2,3

    uname -s will report Linux
    uname -r will report the Linux kernel version (this will vary depending on what kernel update you are running)
    cat /etc/redhat-release will report the Redhat release details

    Don't have access to the other flavours.
    LVL 51

    Assisted Solution


    uname -s  reports AIX
    echo `uname -r`"."`uname -v` reports release version (not shure for newer versions of AIX)

    uname -s reports HP-UX
    uname -r reports release version

    uname -s reports IRIX
    uname -r reports release version

    uname -s reports FreeBSD
    uname -r reports release version

    uname -s reports scounix
    uname -r reports release version
    LVL 23

    Assisted Solution

    Mac OS X:
    uname -s reports Darwin
    uname -r is release version

    Author Comment

    Thanks to everyone who replied.  I split the points based on the number of OS's given in your answers.  

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
    Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now