The Basics of using the Command Line tar Utility

In this video I go over the basics of using the tar (tape archive) utility on a Mac. This utility is also standard on most Linux distributions.

List Files in Directory
ls -lh
List Files Recursively
ls -R
Create tar Archive
tar -cvf data.tar data
Create tar Archive and gzip
tar -cvzf data.tar.gz data
Create tar Archive and bzip
tar -cvjf data.tar.bz2 data
Extract from tar Archive
tar -xvf data.tar

Leave a comment

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