Copying hidden files
Nils Kassube
kassube at gmx.net
Fri Nov 20 14:48:48 UTC 2009
John L Fjellstad wrote:
> Dotan Cohen <dotancohen at gmail.com> writes:
> > That's why you should tar them first. Saves space, preserves
> > permissions, no filename encoding problems.
>
> tar doesn't compress
But compression isn't the only way to save space:
~/ > mkdir /tmp/a
~/ > cd /tmp/a
/tmp/a/ > for n in {100..200};do echo >a$n;done
/tmp/a/ > du -sh .
408K .
/tmp/a/ > tar cf a.tar a*
/tmp/a/ > ls -l a.tar
-rw-r--r-- 1 nils nils 112640 Nov 20 15:46 a.tar
/tmp/a/ >
Nils
More information about the kubuntu-users
mailing list