Lsof lists open files on the system.
Ls of可以列出系统中的打开文件。
For instance, to see all open files under /export/home/sean, use lsof +D /export/home/sean.
例如,要查看 /export/home/sean 中所有打开的文件,可以使用lsof +D /export/home/sean。
While not directly related to using lsof, a brief diversion to the /proc directory is in order.
尽管与使用lsof 没有什么直接的关系,但对 /proc目录进行简要的介绍是有必要的。
You later discovered that lsof shows the file descriptor of a process and the associated file name.
在随后的内容中,您看到了 lsof 可以显示进程的文件描述符和相关的文件名。
You may want to consider upgrading other software such as openssl, openssh, lsof, etc at this stage.
您也许想在这个阶段考虑升级其他软件,比如openssl、openssh、lsof等。
The lsof utility uses this information and other knowledge about the kernel's internals to produce its output.
lsof实用程序使用该信息和其他关于内核内部状态的信息来产生其输出。
You can also use the lsof command's -N option to list only files and directories that are in use on NFS-mounted devices, as shown in Listing 6.
也可以使用lsof命令的-N选项只列出挂载的NFS设备上正在使用的文件和目录,见 清单 6。
The previous section explored the fundamental usage of lsof, namely to show the relationship between open files and the processes that own them.
在前面的部分中,我们研究了 lsof的基本用法,即显示打开的文件和控制它们的进程之间的关系。
The downside of the lsof command is that you always have to either contact users and ask them to terminate certain processes or manually terminate them yourself.
lsof命令的缺点是,必须联系用户并要求他们终止某些进程,或者自己手工终止它们。
When you pass lsof the name of a file, such as in lsof /file/I/deleted, it first uses the stat() system call to get information about the file, which is, unfortunately, gone.
当您向lsof 传递文件名时,比如在 lsof /file/I/deleted 中,它首先使用stat()系统调用获得有关该文件的信息,不幸的是,这个文件已经被删除。
When you pass lsof the name of a file, such as in lsof /file/I/deleted, it first uses the stat() system call to get information about the file, which is, unfortunately, gone.
当您向lsof 传递文件名时,比如在 lsof /file/I/deleted 中,它首先使用stat()系统调用获得有关该文件的信息,不幸的是,这个文件已经被删除。
应用推荐