[yz@localhost ~]$ lsof +D ~/test COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME vim 29235 yz 4u REG 253,2 12288 274648855 /home/yz/test/git_demo/.Readme.txt.swp [yz@localhost ~]$ lsof +d ~/test