xargs / FS-maintenance question

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Sat Oct 2 00:58:11 UTC 2004


On Fri, 1 Oct 2004, Scott Elcomb wrote:

> I'd like to locate files that are hogging a bunch of space on one of my
> systems.  Based on some previous posts here, I'm thinking that I could
> probably use find and xargs to handle the task quickly.
>
> Any pointers for working with xargs would be most appreciated - I'm
> finding the man page a little confusing.

First, would this help:

du -s *|sort -rn|less

(replace asterisk with / if you dare, then run the command again with 
/here, then /here/there etc)

Second:

ls | xargs -n1 echo -e "Another file: "

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list