Create a tar archive
tar -c -f archive.tar *

Create a compressed archive with gzip
tar -c -z -f archive.tar.gz *

You can also condense down the commands like so..
tar -czf archive.tar.gz *

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

One Response to “Super simple, limited and basic look at tar”

  • I am guilty of using zip too much. Less to type “zip -r file source” and “unzip file”. But usually I’m not trying to archive I’m just moving stuff around. However if I would practice compression better, when I have to download and reupload stuff I’m moving through FTP, it would go faster. Maybe I just should connect to the other location through the shell? Oh bad habits.

Leave a Reply