watching all activity on a file?

Mark Komarinski mkomarinski at wayga.org
Thu Dec 20 14:32:18 EST 2007


On 12/20/2007 02:25 PM, Bill McGonigle wrote:
> Anybody know how I can say, "Show me all filesystem activity  
> involving filesystem item /foo/bar/baz ?"
>   
fuser will show all the users that are using a directory (use -m to 
specify it's a mounted filesystem).  So in your case:

fuser -vm /foo/bar/baz

That's not always accurate as it sometimes doesn't show things like NFS 
exports that are on that filesystem that prevent you from umounting it.

You can also use lsof to take a look at all the open files on the local 
system.

HTH

-Mark



More information about the gnhlug-discuss mailing list