Aug 13 2007
Tar Tutorial
UnTar
To untar an archive use:
tar xvzf foo.tgz
Tar
To create an archive use:
tar cvzf foo.tgz dir
Edit: If you are unzipping into a webroot and don’t want the first directory or containing directory add –strip 1 to the end.
tar xvzf foo.tgz --strip 1