El Fri, 24 May 2013 22:04:29 +0200, jors escribió: (...)
> Todo este rollo viene porque tengo un directorio lleno sólo de hardlinks > (comprobado con "stat" archivo a archivo) que según "du" ocupa 5.8GB y > la verdad es que no lo entiendo: > > root@vg:/dir/bck# for i in `ls`; do echo -ne "File ${i}: "; stat ${i} | > grep Links | awk '{ print $5" "$6 }' > File a1.dmp: Links: 4 > File a1.log: Links: 4 > File a2.dmp: Links: 4 > File a2.log: Links: 4 > (...) > > root@vg:/dir/bck# cd .. > root@vg:/dir# du bck/ > 5997988 bck/ > root@vg:/dir# du -h bck/ > 5.8G bck/ > > Si a alguien se le ocurre algo, agradecido. Hum... en la página del manual de "du¹" dice: "(...) If two or more hard links point to the same file, only one of the hard links is counted. The file argument order affects which links are counted, and changing the argument order may change the numbers that du outputs." No sé si eso te dice algo :-? ¹http://www.gnu.org/software/coreutils/manual/html_node/du-invocation.html Saludos, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/kntgq3$c86$1...@ger.gmane.org