Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

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 group IDs, 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 group ID.

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata