I am using a Linux server in command mode, i dont know which linux i am using ie whether it is Fedora Core 1,2,3 or Redh Hat linux Enterpirse or Linux 9.0 Version??
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)
2:28 pm on November 16th, 2009
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)
References :
http://www.ittvis.com/services/techtip.asp?ttid=4038