1、lsof
1.1 介绍
lsof 是 List Open File 的缩写, 它主要用来获取被进程打开文件的信息,在Linux中,一切皆文件,lsof命令可以查看所有已经打开了的文件,比如: 普通文件、目录、特殊的块文件、管道、socket套接字、设备文件、Unix域套接字等等。
1.2 用法
lsof的帮助文件
$ lsof -h
lsof 4.93.2
latest revision: https://github.com/lsof-org/lsof
latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ
latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8
usage: [-?abhKlnNoOPRtUvVX] [+|