Show shared library dependency in Linux
在Linux內找某程式所依賴的 library.
#ldd /usr/bin/w
libproc-3.2.7.so => /lib64/libproc-3.2.7.so (0x00000037afa00000) libc.so.6 => /lib64/libc.so.6 (0x00000037b0800000) /lib64/ld-linux-x86-64.so.2 (0x00000037af600000)
在Linux內找某程式所依賴的 library.
#ldd /usr/bin/w
libproc-3.2.7.so => /lib64/libproc-3.2.7.so (0x00000037afa00000) libc.so.6 => /lib64/libc.so.6 (0x00000037b0800000) /lib64/ld-linux-x86-64.so.2 (0x00000037af600000)