You can tar or untar folders using below commands, and additional you can zipped them too :

To Compress a folder:
tar –czvf foldername.tar.gz foldername

To Uncompress a tar file:
tar –xzvf foldername.tar.gz

To View files within tar.gz:
tar –tzvf foldername.tar.gz

To Create tar only:
tar -cvf foldername.tar foldername

To Extract tar only:
tar -xvf foldername.tar

To View tar only:
tar -tvf foldername.tar

Tags: ,

Leave a Reply