Simple example of tar in linux , how to tar/untar

A simple practical example to use tar:

To tar:
tar -cvf new_tar_file.tar file_or_directory/

To untar
tar -xvf tar_file.tar

To untar bz2
tar -jxvf tar_file.tar.bz2

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.