Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Convoluted | 11 comments | Create New Account
Click here to return to the 'Convoluted' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Convoluted
Authored by: kwalker on May 16, '02 09:28:26AM

These tips are very convoluted. There are more
direct ways to do it:

>To tar the current directory into one file and save the new
>file in the parent directory:
>
> % tar cf - . > ../filename.tar

Better: % tar cf ../filename.tar .

>To then zip the new file:
>
> % cat ../filename.tar | gzip > ../filename.tgz

Better: % gzip filename.tar

>To do both at the same time:
>
> % tar cf - . | gzip > ../filename.tgz

Better: % tar czf ../filename.tgz .



[ Reply to This | # ]