Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Version of Unix

Status
Not open for further replies.

spinik

Programmer
Aug 22, 2001
17
CA
How do I extract the Unix version I am using (both OS and release number)?

Thanks,

SBO Spinik
Senior consultant
 
oslevel
oslevel -g
oslevel -q

Look at the man page for more detail. IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
I like oslevel -r Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
 
I was actually looking for the command that would give me:

AIX

for the operating sustem and

4.3.3

for the version.

Thanks,

SBO Spinik
Senior consultant
 
Have you tried uname? This returns AIX for me.

And oslevel without any parameters yeilds 4.3.3.0 for me. I think that is as close as you will get. Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
 
uname -a will give you:
AIX Saturn 3 4 006030704C00

Where each field is:
(OS) (hostname) (release) (level machine ID number)
 
uname and oslevel are exactly what I was looking for. Thanks to all that spent the time to answer my question.

SBO Spinik
Senior consultant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top