Getting a list of used libraries by a running process (unix)

后端 未结 7 468
梦如初夏
梦如初夏 2020-12-23 20:30

I need to find out what libraries a unix process has loaded and might use throughout it\'s lifetime. Is this possible and how. Or better yet, i have a library name and i nee

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 20:56

    you can use lsof. See the man page for more info. Another tool is strace. To see if a process is launched, you can use ps -ef piped to grep, or tools like pgrep as well. check for the return value to know if its quit or not.

提交回复
热议问题