Michael Salmon <Michael.Salmon@uab.ericsson.se> writes:
Is there a way to list all the biggest files in order just on the / drive and not cross disk bounders. Print the biggest files first and then so on...
One of my favorite commands: find / -xdev -type f -ls | sort +6n
You might want to include -size +200 [...]
Those are good ideas. In some of my cases, I'm also interested in directories having a great number of moderately sized files, and just looking for the biggest files might miss these big directories. So, I do things like: du -x / | sort -nr | head -200 to find the 200 biggest directories. This also catches big files, by listing directories holding them. Maybe not as immediate as the `find' approach, but since I like peeking around anyway, just in case, it is OK for me.
You might like to try lsof in that case, fuser is also good but it appears not to have the using file system option under linux.
By the way, `lsof' looked to me as vastly superior to `fuser'. I even upgraded a Linux system as an easy way to get `lsof' installed without going through the burden of recompilation! :-) Besides compatibility of older scripts maybe, does someone knows a good reason to keep `fuser' around? -- François Pinard http://www.iro.umontreal.ca/~pinard -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/