티스토리 뷰

1. ldd file_name 

linux.die.net/man/1/ldd

 

ldd(1): print shared library dependencies - Linux man page

ldd(1) - Linux man page Name ldd - print shared library dependencies Synopsis ldd [OPTION]... FILE... Description ldd prints the shared libraries required by each program or shared library specified on the command line. Security In the usual case, ldd invo

linux.die.net

2. lsof -p processid 

man7.org/linux/man-pages/man8/lsof.8.html

 

lsof(8) - Linux manual page

lsof(8) — Linux manual page LSOF(8) System Manager's Manual LSOF(8) NAME         top lsof - list open files SYNOPSIS         top lsof [ -?abChlnNOPRtUvVX ] [ -A A ] [ -c c ] [ +c c ] [ +|-d d ] [ +|-D D ] [ +|-e s ] [ +|-E ] [ +|-f [cfgGn] ] [ -F

man7.org

1) 프로그램 실행;

2) ps aux | grep 프로그램이름 

3) lsof -p pid 

 

엄밀히 말하면 lsof 는 사용하고 있는 파일명을 찾아주는 것이다. 그런데 리눅스는 파일이 모든 것이라서^^ 파일명만 찾으면 된다. 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함