create:
tar -cvf mystuff.tar mystuff/tar -czvf mystuff.tgz mystuff/
extracting:
tar -xvf mystuff.tartar -xzvf mystuff.tgz
testing/viewing:
tar -tvf mystuff.tartar -tzvf mystuff.tgz
-c, –create create a new archive
-z, –gzip, –ungzip filter the archive through gzip
-v, –verbose verbosely list files processed
-f, –file=ARCHIVE use archive file or device ARCHIVE
-t, –list list the contents of an archive
See more:
http://linuxbasiccommands.wordpress.com/2008/04/04/linux-tar-command/
No comments:
Post a Comment