April 28, 2015
1:57 a.m.
On Tue, 28 Apr 2015 00:58:47 -0000, cmqycmqy said:
(Again, depending I just want to print process info whitch have open a specific file£¨inode£©. Then if i want to delete a file in use,i can just kill the process one by one.
No kernel hacking needed for that, you can do it in userspace. # lsof | grep /your/file/here # kill -9 ` lsof | grep /your/file/here | awk '{print $2} |uniq '`