↧
Answer by user313114 for Shrink/reset directory size?
I'd do it like this.cp -aloldirnewdir&&mvolddirtempname&&mvnewdirolddir&&rm -rtempnamewhere olddir is the directory you want to shrinknewdir and tempname are temporary...
View ArticleAnswer by Dan McCarthy for Shrink/reset directory size?
I recently had to delete and recreate an NFS directory to shrink its size after it had previously bloated. In the process, I found a fairly efficient way to do this using rsync and hard links. This...
View ArticleAnswer by BMDan for Shrink/reset directory size?
See also rm on a directory with millions of files (the original question is not directly related, but we discuss this problem there nonetheless).As far as I'm aware, at least on ext2/3, no, there's no...
View ArticleShrink/reset directory size?
Is there a way to shrink a directory entry?My dovecot maildir directories have increased in size from the default 4096 to several megs, and it is messing with disk quotas.The only way that I have...
View Article
More Pages to Explore .....