Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
du with head command not returning results as expected
  • From: "James D. Parra" <Jamesp@xxxxxxxxxxxxxxxx>
  • Date: Wed, 12 Apr 2006 16:33:42 -0700
  • Message-id: <531F1E080638384C9623B00D71AA546D09ED6D@xxxxxxxxxxxxxxxxxxxxxxxxx>
Hello,

Using "du -cks * |sort -rn |head -20" to get a list of the top 20
directories with the most amount of bloat. This has always worked well in
the past, but now I get a listing saying certain directories don't exist,
which is completely false.

<snip>
du: `User10': No such file or directory
du: `User11': No such file or directory
du: `User12': No such file or directory
du: `User14': No such file or directory
du: `User15': No such file or directory
du: `User16': No such file or directory
du: `User17': No such file or directory
1802956 total
1802956 User1


If I remove the head command a listing of all the directories appear as
expected. Using Suse 9.3, kernel 2.6.11.4-21.11-smp. Is the 'head' command
corrupt? I get he same results using another 9.3 server.

Many thanks in advance.

James

< Previous Next >
Follow Ups