Monday 11 March 2013

How to use fuser in Linux when you have many files?


find . -name "*.trc" -mtime +0 -exec /sbin/fuser -v {} \;
find . -name "*.req" -mtime +0 -exec /sbin/fuser -v {} \;
Like: l1234856.req:25368o  ===> if it is in used.

Note:The output is differ in linux/solaris.
Files which are in used only will be shown in next line in linux.

      

No comments:

Post a Comment