7/21/2008

The command to know the linux version i am using

What is the command to know the linux version i am using?

username@machine> uname -a
Linux test_machine1 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux

In this example, the Linux kernel version is 2.4.21-4.


To obtain the Linux glibc version, type the following at the shell command prompt:

username@machine> rpm -q glibc
glibc-2.3.2-95.3

Two alternative methods to obtain glibc version information:
username@machine> /lib/libc.so.6 | head -1
GNU C Library stable release version 2.3.2, by Roland McGrath et al.

username@machine> getconf GNU_LIBC_VERSION
glibc 2.3.2

If you are using a RedHat Linux distribution, you can find the RedHat release by typing:
usename@machine> cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)

0 comments: