ldd Command
Purpose
Lists dynamic dependencies.
Syntax
ldd FileName
Description
The ldd command lists the path names of all dependencies. The command will report dependencies on only valid XCOFF files.
Parameters
Item | Description |
---|---|
FileName | Specifies the file whose dependencies will be listed. |
Exit Status
- 0
- The command completed successfully.
- >0
- An error occurred.
Examples
- To display dependencies on /usr/bin/dbx, enter:
The output looks like the following:ldd /usr/bin/dbx
/usr/bin/dbx needs: /usr/lib/libc.a(shr.o) /usr/lib/libdbx.a(shr.o) /unix /usr/lib/libcrypt.a(shr.o) /usr/lib/libpthdebug.a(shr.o)
Files
Item | Description |
---|---|
/usr/bin/ldd | Contains the ldd command. |