>
tar -tvf file.tar
List the contents of a tar.gz file>tar -ztvf file.tar.gz
tar all .cc and .h files into a tar file named foo.tgz use
>tar cvzf foo.tgz *.cc *.h
extract only one (or several) files
>tar xvzf foo.tgz
extract only one (or several) files
>tar xvzf foo.tgz anagram.cc
extract bz2 tar ball
>tar -jxvf filename.tar.bz2
extract bz2
>bunzip filename.bz2
No comments:
Post a Comment