【发布时间】:2010-11-23 06:11:21
【问题描述】:
我执行了命令 (source):
$ exec 3>/tmp/thirdfile
$ exec 4>/tmp/fourthfile
$ echo drib >&3
$ echo drab >&4
$ echo another drib >&3
$ echo another drab >&4
$ exec 3>&-
$ exec 4>&-
如何查看文件句柄,例如 lsof -l?
【问题讨论】:
-
您是否考虑过为您感兴趣的系统阅读lsof 的源代码?仍在使用的商业闭源 unix 很少,如果是这种情况,您应该告诉我们。
标签: unix file-handling file-descriptor