[Ilugc] One Day One GNU/Linux Command (LDD)

Girish Venkatachalam girishvenkatachalam at gmail.com
Fri Dec 19 10:02:18 IST 2008


On 09:32:44 Dec 19, Bharathi Subramanian wrote:
> One Day One GNU/Linux Command 
> =============================
> 
> ldd -- Print shared Library DepenDencies.
> 
> Summary:
> 
> Most of the programs/libraries are linked to shared libraries, like
> libc, etc. If a particular shared library, needed by a program, is 
> not present in the system, then that program will not run.
> 
> ldd command is used to print the shared libraries required by each
> program or shared library specified on the command line.
> 
> Examples:
> 
> $ ldd /bin/ls -- Print all shared libs needed for the ls command.
> 
> $ ldd -v /bin/ls -- Same as above + Extra version details.
> 
> $ ldd /lib/libtermcap.so.2 -- Print all shared libs needed for this
>                               library.
> 

This is a good trick.

$ ldd `which bash`

so you don't need the complete path.

Use backticks and not apostrophe. ;)

-Girish


More information about the ilugc mailing list