To check your libc (glibc) version type “ls -l /lib/libc.” and hit TAB. This should expand the line into the name of your libc library file, e.g. something like /lib/libc.so.6
Umm… no, the .6 does not mean that your glibc version is 6, unfortunately it is a little more complicated than that … but not too much!
Now that you know the name of the file run it as an executable, i.e. just type /lib/libc.so.6 in the console (or whatever your lib is named). It should dump lot’s of info that looks like this:
GNU C Library stable release version 2.8, by Roland McGrath et al.
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Compiled by GNU CC version 4.3.0 20080428 (Red Hat 4.3.0-8).
Compiled on a Linux >>2.6.18-92.1.6.el5<< system on 2008-07-16.
The C stubs add-on version 2.1.2.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
RT using linux kernel aio
For bug reporting instructions, please see:
So as you can see your glibc (libc.so) version is 2.8.
Another approach would be to get it programatically as explained in this thread
Cloudandroid apt-get audio boot codec compile C programming cups emacs etc Fedora gcc git global shortcuts grep how to httpd init kernel libc linux linux partition localtime make mount mp3 oracle package package managers partition rpm rpmfusion script Ubuntu UTC vbox version control system virtual box vm web server windows partition wordpress xargs xfce xwin