Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Apr 1999 12:29:08 +1000 (EST)
From:      "Michael Henry" <mhenry@hons.cs.usyd.edu.au>
To:        freebsd-newbies@freebsd.org
Subject:   Useful command
Message-ID:  <19990408023119.29D5A14D3B@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

While reading "Essential System Administration" (O'Reilly) the
other day, I discovered a very useful command.

"file"

It identifies the files given as arguments.

For example:

$ file *

battle:     ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
cleanup:    executable shell script
list:       executable shell script
myprocs:    executable shell script
nedit:      ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

In this case, I did it in my "bin" directory. (As you may have noticed,
I'm not currently using FreeBSD).

I recently upgraded from 2.2.6-Release to 3.1-Release, and I find
this command very useful for identifying which binaries are in
ELF format and which are in aout format. (I'm slowly but steadily
replacing all aout binaries).

I hope you find this information useful,

	Michael




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990408023119.29D5A14D3B>