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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can one find out version numbers of OS 1

Status
Not open for further replies.

shyamal

Programmer
Aug 14, 2000
79
US
How can one find out the Linux version and version numbers on an iSeries partition. The types would be SuSe.

Thanks in advance.
 
uname -r will give you the kernel version number, uname -a will give you more information.

Cheers - Gavin
 
Thanks when I run the uname -a command I recieve the following:

Linux vu2 2.4.20-19.7 #1 Tue Jul 15 13:45:48 EDT 2003 i686 unknown

I was told that this box had Red Hat 7.3, how do you obtain this from the line above. I see no indication that this is RedHat and that it is7.3 thanks.
 
Usually you will find a [tt]/etc/<distribution>-release[/tt] file, [tt]ls /etc/*-release[/tt] should list the files for you. [tt]cat[/tt]ing it should tell you what version of the distribution. Note that the file may have been removed.

//Daniel
 
Try &quot;cat /proc/version&quot; or &quot;cat /etc/issue&quot;.

[root@penguin root]# cat /proc/version
Linux version 2.4.9-e.3 (bhcompile@stripples.devel.redhat.com) (gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-108.1)) #1 Fri May 3 17:02:43 EDT 2002

[root@penguin root]# cat /etc/issue
Red Hat Linux Advanced Server release 2.1AS/\m (Pensacola)


ChrisP
 
Thanks for all the help, these commands are great but for the following command:

ls /etc/*-release

How does one ensure that the patch upgrades are accounted for? That is if the version is shown as SuSE 7.3 how does one know that this is inclusive of the latest patch?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top