Tech Junkie Blog - Real World Tutorials, Happy Coding!: Linux Package Management: Viewing Shared Libraries With ldd And pmap

Monday, June 6, 2022

Linux Package Management: Viewing Shared Libraries With ldd And pmap

 As a Linux administrator you will eventually have to deal with libraries.  Libraries are the building blocks of applications and most applications uses shared libraries among them.  I could be beneficial to load the shared libraries from a centralized location.  For example if you want to load shared libraries for developers in a particular location, you can do that.

To load the libraries from a cached location we first need to view the shared libraries in the application/process.  Let's work with the currently running process.  First let's get the processes that are running with the ps -l command.  The first way you can view the shared libraries information is by running the ldd command, the ldd command needs the path to the process.  





As you can see bash is one of the processes that is currently running that is a good candidate to run the ldd command on, but we don't know the path to the process.  We can get more information about the process with the command ps aux | grep bash







From the ps aux command we found out the the path of the process is /bin/bash for root so we can finally view the libraries for bash with the command ldd /bin/bash

As you can see that was quite a lot of work to get to the path.  There's another way to get the libraries for bash and that is the pmap command.  For the pmap command you will need the pid of the process so to see the bash process libraries you can type pmap 870




33 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Very helpful blog. I am very happy to visit your blog. Now I am found what I want. I check your blog every day and try to learn something from your blog. Thank you and waiting for your new post. Also, Visit my website too. Thank you.

    ReplyDelete
  4. very nice Content. Visit now: https://www.avashutters.ca/

    ReplyDelete
  5. It is truly an honour to run across informational content like the one you have written. You are evidently knowledgeable on this written topic and you have unique views to share.
    SAP training in Kolkata
    SAP course in Kolkata

    ReplyDelete
  6. Good to read this article when starting a blog. Happy to read that is only a limitation in our minds Thanks!

    ReplyDelete
  7. เกม สล็อต ฟรี วันนี้ก็ขอเสนอแนะเกมทดสอบเล่นฟรี! พีจี แจกเครดิตฟรี pg slot ในตัวเกมทดสอบ ไว้ให้ผู้เล่นได้ทดสอบเข้าไปสัมผัสเปิดประสบการณ์ใหม่ๆแล้วเกมที่มีชื่อเสียงเยอะที่สุดวันนี้ๆ

    ReplyDelete
  8. Joker123 ที่พวกเราพรีเซ็นท์ เกมออนไลน์ได้เงินจริง ที่ตื่นเต้นเยอะแยะ กราฟฟิกงามไม่มีอันตราย ให้คุณเพลินและก็ศึกษาและทำการค้นพบระยะเวลาที่ความสนุกที่ pg และก็คุ้มค่ามาก

    ReplyDelete
  9. ทดลองเล่นสล็อต pp เกมสล็อตออนไลน์ รูปแบบใหม่ อัพเดทปี2022 มีเกมให้เลือกเล่นเยอะแยะ ไม่ว่าจะเป็น คาสิโนสด pg slot บาคาร่าออนไลน์เกมยิงปลาซึ่งสามารถเล่นผ่านมือถือได้ทุกระบบ

    ReplyDelete
  10. พี จี มีทั้งยังเกมสล็อตและก็ยิงปลา รวมแล้วมากยิ่งกว่า 100 เกมให้เลือกเล่นอย่างจุใจ ฉีกทุกกฎของเกมสล็อตทั้งหมดของ pg ที่เคยมีมาเพียงแค่เติมเงินก็เล่นได้เลย แตกบ่อย แตกง่าย

    ReplyDelete
  11. Fresh Fullz supplier USA/CANADA/UK

    Fullz format:
    Name|SSN|DOB|DL|Address|City|State|Zip|Phone|Email
    High Credit Scores Pros 700+ (USA Credit Bureau Database)

    Good quality CC Fullz CVV
    Fresh CVV UK|USA|CA
    DL Scan Front/Back with SSN+Selfie
    Dumps with pin codes

    -No refund, Replacement only
    -Fast delivery, 24/7 response
    -CVV replace if not valid

    Fullz CA+SIN
    Fullz USA SSN+Dob+DL+Employee History
    Fullz UK|Italy|France

    Hacking|Carding|Spamming|Scripting stuff available
    Tools,Tutorials, Loan Methods, Cash out Methods

    100% valid information & fresh Database

    --->Contact me now for good business (online 24/7)

    ***ICQ: @killhacks
    ***Telegram: @leadsupplier
    ***Whatsapp: +92 317 2721122
    ***Skype/Wicker: @peeterhacks

    ReplyDelete
  12. The article titled "Linux Package Management: Viewing Shared Libraries With ldd And pmap" is an excellent resource for Linux users and system administrators seeking a deeper understanding of shared libraries and package management. The author has provided a comprehensive guide on how to utilize two powerful tools, ldd and pmap, to view and analyze shared libraries in a Linux environment. The step-by-step explanations, accompanied by relevant command examples, make it easy for readers to follow along and grasp the concepts effectively. Furthermore, the article goes beyond basic usage and dives into more advanced features, enabling readers to gain a deeper insight into library dependencies and memory mapping. This resource is a valuable asset for troubleshooting and optimizing system performance, as it equips users with the knowledge to identify and manage shared library issues efficiently. Kudos to the author for providing such a well-written and informative guide that empowers Linux users to navigate package management with confidence!
    By - Siddharth Singh

    ReplyDelete
  13. I also suggest that you check out UK International, as they offer placement after certification. This is a great opportunity to get your foot in the door and start your career as a makeup artist.

    ReplyDelete
  14. In this standard, folders /lib, /usr/lib and /usr/local/lib are the default folders to store shared libraries. The /lib folder has libraries used during the boot time of the system but also used by programs in the /bin folder. Similarly, the/usr/lib folder has libraries used by programs in the /usr/bin folder.

    IFDA is the best institute for Graphic design Course in Delhi. We also provide 100% Job Placement and Paid Internship.
    Best Graphic Design course in Delhi

    ReplyDelete
  15. Ticket Management System | HelpDesk CRM Ticketing Tool | SalezRobot
    Des :
    SalezRobot's Ticket Management System is a powerful help desk CRM that offers customer support with contextual information. Try it today our Help Desk Ticket Management CRM
    keyword:
    Ticket Management Software, Helpdesk Ticketing System, Online Ticketing System for Customer SuppCustomer Support Tic
    Url:
    https://salezrobot.com/ticket-management-system.php

    ReplyDelete
  16. https://www.salezrobot.com/rphone-cloud-telephony-ivr.php

    Ankit chaudharyAugust 1, 2023 at 1:21 AM
    In this standard, folders /lib, /usr/lib and /usr/local/lib are the default folders to store shared libraries. The /lib folder has libraries used during the boot time of the system but also used by programs in the /bin folder. Similarly, the/usr/lib folder has libraries used by programs in the /usr/bin folder.

    ReplyDelete
  17. The article titled "Linux Package Management: Viewing Shared Libraries With ldd And pmap" is an excellent resource for Linux users and system administrators seeking a deeper understanding of shared libraries and package management. The author has provided a comprehensive guide on how to utilize two powerful tools, ldd and pmap, to view and analyze shared libraries in a Linux environment. The step-by-step explanations, accompanied by relevant command examples, make it easy for readers to follow along and grasp the concepts effectively.https://www.salezrobot.com/ai-chatbot.php

    ReplyDelete
  18. Informative content for Linux users, making it simple for readers to follow along and successfully understand the ideas. Now to move to do my assignment online for needy students how wants to write your assignment helps.

    ReplyDelete
  19. Thanks for sharing this information For more info, please connect How to do recruitment for medical industry

    ReplyDelete
  20. Lahore Hair Transplant provides the unique services to the customers. The qualified and well mannered staff is available for the guidance of the patient. The communication made between the staff and the patient guides the patient in the right medical procedure direction.

    ReplyDelete
  21. Beyond Traditional Package Management: Nix and Guix for Declarative System Configuration.
    Package Management in Server Environments: Tools and Techniques for Efficient Administration.SEO Nahidul

    ReplyDelete
  22. "Great tutorial! Understanding how to use ldd and pmap to view shared libraries in Linux really helps in troubleshooting issues and optimizing performance. Thanks for sharing!"SEO Emran

    ReplyDelete
  23. Its nice to look into your valuable thoughts.I am very much inspired by your blog.So I look forward to see some more updates on your site.........Europe VPS Server

    ReplyDelete
  24. Transform your work from good to exceptional. Whether you're refining your writing style or ensuring flawless grammar, their expertise ensures your professional assignment editing services meet high standards. Trusting professionals to polish your work not only enhances clarity and coherence but also boosts your confidence in academic pursuits. Invest in professional editing and elevate your assignments to new heights!

    ReplyDelete

Search This Blog