HOW to check Linux version
hi
how we can check a linux os version from /etc/redhat-release is Redhat Linux 3 Desktop or Redhat Linux 4 Desktop or Red Hat Enterprise Linux 2.1 Red Hat Enterprise Linux 2.1 Advanced Server or Red Hat Enterprise Linux 2.1 Advanced Server IA64 or Red Hat Enterprise Linux 2.1 Advanced Server Workstation or Red Hat Enterprise Linux 2.1 Enterprise Server or Red Hat Enterprise Linux 2.1 Enterprise Server IA64 or Red Hat Enterprise Linux 2.1 Workstation or Red Hat Enterprise Linux 2.1 Workstation IA64 or Red Hat Enterprise Linux 3 update4 or Red Hat Enterprise Linux 3 ga or Red Hat Enterprise Linux 3 Update1 Advanced Server or Red Hat Enterprise Linux 3 (general availability) Advanced Server or Red Hat Enterprise Linux 3 Update9 Desktop or Red Hat Enterprise Linux 3 (general availability) Enterprise Server or Red Hat Enterprise Linux 3 (general availability) Workstation Server or Red Hat Enterprise Linux (v.5.1) or Red Hat Enterprise Linux Desktop Workstation (v.5.1 client) or Red Hat Enterprise Linux Desktop Workstation (v.5 client) or Red Hat Enterprise Linux Desktop Workstation (general availability client) or |
Check out the uname command. It is there to give you information about the OS. Also, check the /etc/issue file for information.
|
Hi,
I'm not sure what it is you want to find out: Are you talking about a distro version (Redhat Linux 3 Desktop vs Red Hat Enterprise Linux 2.1 Workstation) or linux kernel version (2.6.24.2 vs 2.6.27.4)? The first is in the /etc/redhat-release file (called different for other distro's, but it should reside in /etc). The second can be found by the uname -r (or -a) command. |
For what boots...
I see the linux I have installed and its kernel when I enter the console mode by opening a terminal as su and using the command "init 3". |
Hi Amit,
if you want to check Linux distro then /etc/redhat-release is the best option, and for kernel version the option would be uname -r or uname -a..., as suggested by druuna as well. Even after that if you are confused then restart the machine and then at the startup , you can make it out easily over there. Cheers, Kapil |
Uname -a should answer you pothetic question, next time read the Frigging Manual.
Code to get infoe mation on init Code:
man init Code:
man uname |
@NewBirth88: In a bit of a bad mood, aren't we ;) BTW: Start using the spell check button.......
|
Quote:
|
:( )
|
I like the lsb_release command for determining Distribution version.. it should be part of your distro if it's LSB Compliant.
Code:
it-lenny:~$ lsb_release -a |
Quote:
|
To NewBirth88 (and the public):
Your comments were completely unnecessary. This is LinuxQuestions after all, and also the forum title above this thread is Linux-Newbie, so it's normal to have many similar questions here. Next time, if you really can't stand a newbie question, just move to the next thread or politely show how to search for answers... |
All times are GMT -5. The time now is 01:11 AM. |