<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d11356004\x26blogName\x3dxception\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://openrent.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://openrent.blogspot.com/\x26vt\x3d-2179510228592399674', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

What libraries is process XYZ using?

Ever wonder what libraries a process is using? The pmap command will report memory map of any process. Just issue "pmap " to find out. Here we examine the libraries being used by the Netbackup process:

# pmap 10345
10345: bpbkar -r 2678400 -ru root -dt 86459 -to 0 -sched Daily_Incr -st INCR -bpstart_to 1800 -bpend_to 1800 -read_to 7200 -use_otm -kl 5 -use_ofb
00b7c000 84K r-x-- /lib/ld-2.3.4.so
00b91000 4K r-x-- /lib/ld-2.3.4.so
00b92000 4K rwx-- /lib/ld-2.3.4.so
08048000 364K r-x-- /usr/openv/netbackup/bin/bpbkar
080a3000 28K rwx-- /usr/openv/netbackup/bin/bpbkar
080aa000 1368K rwx-- [ anon ]
b7a44000 2080K rwx-- [ anon ]
b7c4c000 36K r-x-- /lib/libnss_files-2.3.4.so
b7c55000 8K rwx-- /lib/libnss_files-2.3.4.so
b7c59000 4K r-x-- /usr/lib/gconv/ISO8859-1.so
b7c5a000 8K rwx-- /usr/lib/gconv/ISO8859-1.so
b7c5c000 24K r-xs- /usr/lib/gconv/gconv-modules.cache
b7c63000 4K r-x-- /usr/lib/locale/locale-archive
b7c64000 24K r-x-- /usr/lib/locale/locale-archive
b7c6a000 180K r-x-- /usr/lib/locale/locale-archive
b7c97000 2048K r-x-- /usr/lib/locale/locale-archive
b7e97000 4K rwx-- [ anon ]
b7e98000 1172K r-x-- /lib/tls/libc-2.3.4.so
b7fbd000 4K r-x-- /lib/tls/libc-2.3.4.so
b7fbe000 12K rwx-- /lib/tls/libc-2.3.4.so
b7fc1000 8K rwx-- [ anon ]
b7fc3000 8K r-x-- /lib/libdl-2.3.4.so
b7fc5000 8K rwx-- /lib/libdl-2.3.4.so
b7fc7000 60K r-x-- /lib/libresolv-2.3.4.so
b7fd6000 8K rwx-- /lib/libresolv-2.3.4.so
b7fd8000 8K rwx-- [ anon ]
b7fda000 72K r-x-- /lib/libnsl-2.3.4.so
b7fec000 8K rwx-- /lib/libnsl-2.3.4.so
b7fee000 12K rwx-- [ anon ]
b7ffd000 4K r-x-- /lib/libcwait.so
b7ffe000 4K rwx-- /lib/libcwait.so
bffbc000 272K rwx-- [ stack ]
ffffe000 4K ----- [ anon ]
total 7936K