虽然我不会吝惜任何学习Dtrace或获得安装软件的经验,但在Solaris中有一个命令来查看进程已打开的文件:
在/usr/bin中/ PFILES
在/usr/bin中/ PFILES
% tail -f /etc/motd & [1] 6033 % pfiles 6033 6033: tail -f /etc/motd Current rlimit: 256 file descriptors 0: S_IFREG mode:0644 dev:182,65538 ino:163065 uid:0 gid:3 size:54 O_RDONLY|O_LARGEFILE /etc/motd 1: S_IFCHR mode:0620 dev:299,0 ino:718837882 uid:101 gid:7 rdev:24,3 O_RDWR|O_NOCTTY|O_LARGEFILE /dev/pts/3 2: S_IFCHR mode:0620 dev:299,3 O_RDWR|O_NOCTTY|O_LARGEFILE /dev/pts/3