#lsof +D /PATH/TO/DIR
e.g.
# lsof +D backup
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 26110 root cwd DIR 8,17 8192 1 backup
#lsof +D /PATH/TO/DIR
e.g.
# lsof +D backup
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 26110 root cwd DIR 8,17 8192 1 backup
本文标题:检查目录中有那些文件被打开
本文链接:https://www.haomeiwen.com/subject/dujdqctx.html
网友评论