Determine FreeBSD version of binary

Roland Smith rsmith at
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> wrote:
> >
> > May be not entirely correct, but close:
> >
> > ldd binary | grep
> >
> 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.

[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 :

More information about the freebsd-questions mailing list