otool

From RaySoft

The otool command displays specified parts of object files or libraries. If the, -m option is not used, the file arguments may be of the form libx.a(foo.o), to request information about only that object file and not the entire library. otool understands both Mach-O (Mach object) files and universal file formats. otool can display the specified information in either its raw (numeric) form (without the -v flag), or in a symbolic form using macro names of constants, etc. (with the -v or -V flag).[1]

Documentation

  • man 1 'otool'

Parameters

-L
Display the names and version numbers of the shared libraries that the object file uses.

Examples

Find linked shared libraries from rsync
otool -L '/opt/local/bin/rsync'

References

  1. man 1 'otool'