Buscar

Linux: Ver que librerías utiliza un binario

Linux: Con el comando ldd podemos ver que librerías utiliza un binario.

Ejemplos:

[root@LINUX1 ~]# ldd /sbin/route
        linux-vdso.so.1 =>  (0x00007fff8df20000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f9a05bc5000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f9a05832000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f9a0562d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f9a05dee000)


[root@LINUX1 ~]# ldd /sbin/insmod
        linux-vdso.so.1 =>  (0x00007fff02fff000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f5798a95000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f5798e32000)


[root@LINUX1 ~]# ldd /bin/su
        linux-vdso.so.1 =>  (0x00007fff9afff000)
        libpam.so.0 => /lib64/libpam.so.0 (0x00007f4e0fb81000)
        libpam_misc.so.0 => /lib64/libpam_misc.so.0 (0x00007f4e0f97d000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f4e0f5e9000)
        libaudit.so.1 => /lib64/libaudit.so.1 (0x00007f4e0f3cd000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f4e0f1c9000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f4e0ef91000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4e0ffa2000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00007f4e0ed2f000)


[root@LINUX1 ~]# ldd /bin/mv
        linux-vdso.so.1 =>  (0x00007fffdf7db000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f428a85e000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f428a656000)
        libacl.so.1 => /lib64/libacl.so.1 (0x00007f428a44d000)
        libattr.so.1 => /lib64/libattr.so.1 (0x00007f428a248000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f4289eb5000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f4289cb0000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f428aa87000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4289a93000)

No hay comentarios:

Publicar un comentario