step 1
pfile pid
step 2
根据 inode number 查找 比如
bash-2.05# pfiles 26053 26053: python Current rlimit: 256 file descriptors 0: S_IFCHR mode:0620 dev:32,0 ino:3982 uid:0 gid:7 rdev:24,2 O_RDWR|O_NOCTTY|O_LARGEFILE 1: S_IFCHR mode:0620 dev:32,0 ino:3982 uid:0 gid:7 rdev:24,2 O_RDWR|O_NOCTTY|O_LARGEFILE 2: S_IFCHR mode:0620 dev:32,0 ino:3982 uid:0 gid:7 rdev:24,2 O_RDWR|O_NOCTTY|O_LARGEFILE 3: S_IFREG mode:0644 dev:0,2 ino:185403968 uid:2001 gid:101 size:5 O_RDONLY|O_LARGEFILE bash-2.05# find /tmp -inum 185403968 /tmp/test.txt