Linux查看某个目录下某个文件是哪个服务打开的

root@debian:~/xxx/xxx# lsof +D /root/ |grep a.txt
rsyslogd     9151 root    1w   REG    8,1 18814406751 135106 /root/a.txt
root@debian:~/xxx/xxx#

 

posted @ 2023-12-14 15:01  你说夕阳很美  阅读(27)  评论(0)    收藏  举报