Creating Compressed Archives
Updated: 11/14/2004
General Information
You've downloaded them, you've extracted them, you've liked them. But how do you create them? This guide will show you how to quickly and easily create a compressed archive in the form of *.tar.gz and *.tar.bz2.Requirements
Usage
| # | tar -cvf archive.tar file |
-c flag tells tar to create a new archive. The -v flag tells tar to display the results while tarring. The -f flag tells tar to create a file named archive.tar. You can either tar directories or files specificied by file. You can enter several files/directories separated by spaces if you want.|
# # |
tar -cvzf archive.tar.gz file tar -cvjf archive.tar.bz2 file |
-z flag indicates to run the archive through gzip while the -j runs the archive through bzip2.Author: Jon LaBass
jon at bsdguides dot org