ldd
linux
Display shared library dependencies of a binary. Do not use on an untrusted binary, use objdump for that instead.
More info →Options (4)
-v, --verbosebooleanDisplay all information about dependencies
Example:
ldd {{[-v|--verbose]}} {{path/to/binary}}-u, --unusedbooleanDisplay unused direct dependencies
Example:
ldd {{[-u|--unused]}} {{path/to/binary}}-d, --data-relocsbooleanReport missing data objects and perform data relocations
Example:
ldd {{[-d|--data-relocs]}} {{path/to/binary}}-r, --function-relocsbooleanReport missing data objects and functions, and perform relocations for both
Example:
ldd {{[-r|--function-relocs]}} {{path/to/binary}}Examples (5)
Display shared library dependencies of a binary
ldd path/to/binaryDisplay all information about dependencies
ldd [-v|--verbose] path/to/binaryDisplay unused direct dependencies
ldd [-u|--unused] path/to/binaryReport missing data objects and perform data relocations
ldd [-d|--data-relocs] path/to/binaryReport missing data objects and functions, and perform relocations for both
ldd [-r|--function-relocs] path/to/binarymade by @shridhargupta | data from tldr-pages