Name

lsbom

Synopsis

lsbom [options] bomfile

Prints the contents of a binary BOM (“bill of materials”) file (bomfile) in human-readable format. By default, lsbom prints a line of information for each file listed in the BOM, as in this example:

./Documents/Install Log.txt 100664 0/80 1182 4086739704

This line shows, in order, the plain file’s pathname, permissions (modes) in octal format, owner and GIDs, size, and checksum. When listing symbolic links, lsbom reports the size and checksum of the link itself, and also lists the pathname of the linked file. Device file listings include the device number, but not the file size or checksum.

Options

-b

List only block devices.

-c

List only character devices.

-d

List only directories.

-f

List only files.

-l

List only symbolic links.

-m

When listing plain files, also display their modification dates.

-s

Print only the file pathnames.

-x

Don’t show the permissions of directories and symbolic links.

-arch arch

When listing fat binary files, show only the size and checksums of the code for chip type arch. Possible values for arch include ppc, m68k, i386, hppa, and sparc.

-p parameters

Limit the content of each line as specified by parameters, which you can compose using any of the options in this list (but none more than once):

c

Show the checksum.

f

Show the filename.

F

Show the filename within quotes.

g

Show the GID.

G

Show the group name.

m

Show the octal file mode.

M

Show the symbolic file mode.

s

Show the file size.

S

Show the file size, formatted ...

Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.