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

Linux Version

Status
Not open for further replies.

ETAC

Technical User
Oct 24, 2002
21
CA
I am trying to find a command that will give me the Linux OS and version. Uname -r gives me the kernel version but I am looking for somthing along the lines of the ver command in windows.
 
There isn't really any such thing. Windows is a monolithic piece of software from one vendor, Linux is a collection of thousands of pieces of software from many contributers.

uname -r is probably the closest you will get to ver, bot some distributions have release levels that you can check, for example Red Hat store it in /etc/redhat-release, SuSE in /etc/SuSE-release, ...

If you know which Linux distribution you are using that would help?

Annihilannic.
 
I beleive it is redhat ENTERPRISE LINUX WS Version 4, but I need to confirm this.
 
Perfect. Thanks ver much

# cat redhat-release

# Red Hat Enterprise Linux WS release 3 (Taroon Update 4)
 

One way is to query the Red Hat RPM database:

rpm -qa | grep -i release

That will produce a line such as:

redhat-release-4WS-3

Which is RedHat Enterprise 4 Work Station Update 3.

That help?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top