- 论坛徽章:
- 1
|
如何获取所有当前打开文件的信息,如句柄、打开进程、用户?
有个lsof的软件包。支持
AIX 4.3.[23], 5L, and 5.1
Apple Darwin 1.[23] and 1.4 for Power Macintosh systems
BSDI BSD/OS 4.1 for Intel-based systems
DEC OSF/1, Digital UNIX, Tru64 UNIX 4.0, and 5.[01]
FreeBSD 4.[2345] and 5.0 for Intel-based systems
HP-UX 11.00 and 11.11
Linux 2.1.72 and above for Intel-based systems
NetBSD 1.5 for Alpha, Intel, and SPARC-based systems
NEXTSTEP 3.[13] for NEXTSTEP architectures
OpenBSD 2.[89] and 3.0 for Intel-based systems
OPENSTEP 4.x
Caldera OpenUNIX 8
SCO OpenServer Release 5.0.[46] for Intel-based systems
SCO UnixWare 7.1.1 for Intel-based systems
Solaris 2.6, 7, 8, and 9 BETA-Refresh
saloris: sunfreeware.com
aix: http://www-1.ibm.com/servers/aix/products/aixos/linux/download.html
hpux: http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.67/
可以直接用二进制包下载。
至于其它的os,你可以用源码方式安装 |
|