← 返回命令列表

Linux command

ldd 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Example

ldd /path/to/binary

Example

ldd -v /path/to/binary

Example

ldd -u /path/to/binary

Example

ldd -d /path/to/binary

Example

ldd -r /path/to/binary

说明

ldd prints the shared objects (shared libraries) required by each program or shared object on the command line. It identifies dependencies and displays their locations along with load addresses.

参数

-v, --verbose
Print all information including symbol versioning
-u, --unused
Print unused direct dependencies
-d, --data-relocs
Perform data relocations and report missing objects (ELF only)
-r, --function-relocs
Perform data and function relocations and report missing objects (ELF only)
--version
Display version information
--help
Display usage information

FAQ

What is the ldd command used for?

ldd prints the shared objects (shared libraries) required by each program or shared object on the command line. It identifies dependencies and displays their locations along with load addresses.

How do I run a basic ldd example?

Run `ldd /path/to/binary` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v, --verbose do in ldd?

Print all information including symbol versioning