Determine FreeBSD version of binary

Roland Smith rsmith at xs4all.nl
Thu Nov 8 13:38:11 PST 2007


On Thu, Nov 08, 2007 at 10:16:38PM +0100, John Smith wrote:
> On Nov 8, 2007 6:59 PM, Yuri Pankov <yuri.pankov at gmail.com> wrote:
> >
> > May be not entirely correct, but close:
> >
> > ldd binary | grep libc.so
> >
> 
> Yes, that helps somewhat. At least I now know that it's FreeBSD 4.x.
> And before I again forget something I forgot to mention earlier on: I
> also have a file called 'kernel'. Could that somehow give somewhat
> more detailed information about exactly which 4.x kernel it is, and if
> so, how would I go about doing that ?

The command 'strings kernel | grep "^@(#)FreeBSD"' should do the trick.

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20071108/e4e7f4fc/attachment.pgp


More information about the freebsd-questions mailing list