关于lsof命令查看某个文件被哪个进程打开

WBOY
Release: 2016-06-06 20:07:41
Original
1322 people have browsed it

我想用lsof测试查看某个文件被哪个进程打开,这样写对不对
关于lsof命令查看某个文件被哪个进程打开

回复内容:

我想用lsof测试查看某个文件被哪个进程打开,这样写对不对
关于lsof命令查看某个文件被哪个进程打开

直接使用

<code>lsof /home/www/phpinfo.php</code>
Copy after login

不要加-r参数
-r参数是一直重复检测当前打开的文件

http://www.cnblogs.com/ggjucheng/archive/2012/01/08/2316599.html

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template