This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Linux version and variant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Linux version and variant" Watch "Linux version and variant" New topic

Linux version and variant

Maalti Iyer
Ranch Hand

Joined: Jul 11, 2001
Posts: 52

I'm new to linux world. I need to know the version and variant of Linux I'm working on. Is there any way to figure out?

Maalti Iyer
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
uname -a should give you some clue.
himanshu patel
Ranch Hand

Joined: Feb 03, 2003
Posts: 205
uname -a will give kernel version while /etc/redhat-release file will give Linux version.

If you want to become a rich, do not work for others but make others to work for you.
Joe Ess

Joined: Oct 29, 2001
Posts: 9150

Originally posted by himanshu patel:
/etc/redhat-release file will give Linux version.

And if you don't have that file, you know you aren't on a RedHat variant.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Linux version and variant
jQuery in Action, 3rd edition