Luke Francl said:
> What is the best way to tar gz a directory? I'm doing
> 
> tar -cz dir > dir-2000-08-18.tar.gz

tar cvzf dir-2000-08-18.tgz dir

> Do you have to use the redirection, or is there a way to make tar write
> output to a file?

The f switch tells it to take the first argument as the name of the tarfile
instead of a file within the tarball.

-- 
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton
Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P+>+++ L+++>++++ E- W--(++) N+ o+
!K w---$ O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv b+ DI++++ D G e* h+ r++ y+

---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
For additional commands, e-mail: tclug-list-help at mn-linux.org