OS Manuals

/usr/bin/scanmacho

ELF related utilities for 32-bit and 64-bit binaries

From pax-utils 1.3.11-r5 (os), captured 2026-11-05 by running scanmacho --help (exit 0). permalink

* Scan Mach-O binaries for stuff

Usage: scanmacho [options] <dir1/file1> [dir2 dirN file2 fileN ...]

Options: -[pRmyArnibSUN:gE:M:DO:ZaqvF:f:o:CBhV]
  -p, --path                * Scan all directories in PATH environment
  -R, --recursive           * Scan directories recursively
  -m, --mount               * Don't recursively cross mount points
  -y, --symlink             * Don't scan symlinks
  -A, --archives            * Scan archives (.a files)

  -r, --rpath               * Print LC_RPATH information (ELF: RPATH/RUNPATH)
  -n, --needed              * Print LC_LOAD_DYLIB information (ELF: NEEDED)
  -i, --interp              * Print LC_LOAD_DYLINKER information (ELF: INTERP)
  -b, --bind                * Print flags from mach_header (ELF: BIND)
  -S, --soname              * Print LC_ID_DYLIB information (ELF: SONAME)
  -U, --uuid                * Print LC_UUID information
  -N, --lib <arg>           * Find a specified library
  -g, --gmatch              * Use strncmp to match libraries. (use with -N)
  -E, --etype <arg>         * Print only Mach-O files matching mach_header
                       MH_OBJECT,MH_EXECUTE ... (ELF: etype)
  -M, --bits <arg>          * Print only Mach-O files matching numeric bits
  -D, --endian              * Print Endianness
  -O, --perms <arg>         * Print only Mach-O files matching octal permissions
  -Z, --size                * Print Mach-O file size
  -a, --all                 * Print all useful/simple info

  -q, --quiet               * Only output 'bad' things
  -v, --verbose             * Be verbose (can be specified more than once)
  -F, --format <arg>        * Use specified format for output
  -f, --from <arg>          * Read input stream from a filename
  -o, --file <arg>          * Write output stream to a filename
  -C, --nocolor             * Don't emit color in output
  -B, --nobanner            * Don't display the header
  -h, --help                * Print this help and exit
  -V, --version             * Print version and exit

For more information, see the scanmacho(1) manpage.
Options (28)
OptionDescriptionSource
-p, --path* Scan all directories in PATH environmenthelp
-R, --recursive* Scan directories recursivelyhelp
-m, --mount* Don't recursively cross mount pointshelp
-y, --symlink* Don't scan symlinkshelp
-A, --archives* Scan archives (.a files)help
-r, --rpath* Print LC_RPATH information (ELF: RPATH/RUNPATH)help
-n, --needed* Print LC_LOAD_DYLIB information (ELF: NEEDED)help
-i, --interp* Print LC_LOAD_DYLINKER information (ELF: INTERP)help
-b, --bind* Print flags from mach_header (ELF: BIND)help
-S, --soname* Print LC_ID_DYLIB information (ELF: SONAME)help
-U, --uuid* Print LC_UUID informationhelp
-N, --lib arg* Find a specified libraryhelp
-g, --gmatch* Use strncmp to match libraries.help
-E, --etype arg* Print only Mach-O files matching mach_header MH_OBJECT,MH_EXECUTE ...help
-M, --bits arg* Print only Mach-O files matching numeric bitshelp
-D, --endian* Print Endiannesshelp
-O, --perms arg* Print only Mach-O files matching octal permissionshelp
-Z, --size* Print Mach-O file sizehelp
-a, --all* Print all useful/simple infohelp
-q, --quiet* Only output 'bad' thingshelp
-v, --verbose* Be verbose (can be specified more than once)help
-F, --format arg* Use specified format for outputhelp
-f, --from arg* Read input stream from a filenamehelp
-o, --file arg* Write output stream to a filenamehelp
-C, --nocolor* Don't emit color in outputhelp
-B, --nobanner* Don't display the headerhelp
-h, --help* Print this help and exithelp
-V, --version* Print version and exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.