Tuesday, January 13, 2009

tar

Unix
How do I create, extract, and view tar files?

To create a tar file:
tar cfv [filename.tar] [directory/file to tar]

To append into a tar file:
tar rfv [filename.tar] [directory/file to tar]

To extract files from a tar file:
tar xfv [filename.tar] [directory to extract to]

To view the contents of a tar file:
tar tfv [filename.tar]

No comments: