Super simple, limited and basic look at tar

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.

This entry was posted in tips and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted May 6, 2009 at 11:09 pm | Permalink

    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.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>