ldd查询命令或软件共享的函数库(动态)

<1>

ldd - print shared library dependencies

SYNOPSIS
ldd [OPTION]... FILE...

DESCRIPTION
ldd prints the shared libraries required by each program or shared library speci-
fied on the command line.

eg:

测试ldd命令sshd和httpd两个程序是否支持TCP Wrappers的功能?

[root@slave1 xinetd.d]# ldd $(which sshd httpd)|grep libwrap.so -B 100
/usr/sbin/sshd:
linux-vdso.so.1 => (0x00007fff02dff000)
libfipscheck.so.1 => /lib64/libfipscheck.so.1 (0x00007f6966e7e000)
libwrap.so.0 => /lib64/libwrap.so.0 (0x00007f6966c73000)       //sshd支持/etc/hosts.{allow,deny}类似防火墙的低档机制的,因为TCP Wrappers是用的这个库最该文件起作用的.

你可能感兴趣的:(ldd)