need help with tar'ing and bz2'ing a file
i read the man pages and i still cant figure it out...can somebody just got through the standard way to tar a directory and then bz2 (and .gz) it?
|
I don't know about the standard way, but what I do is cd into the folder above the one I want to compress and then use the command
tar cjf $FOLDER.tar.bz2 $FOLDER replace $FOLDER with the actual name of the folder |
thanks...helped a lot
|
Hello!
Pack a directory to an tar archive: Code:
tar -cvf archive.tar directory Code:
gzip archive.tar Code:
tar -cvf archive.tar directory && gzip archive.tar Code:
tar cvfz archive.tar.gz directory Code:
tar -cvjf archive.tar.bz2 directory Boby |
EDIT: Sorry, I misread your message. If you have read the manual then try to play with simple, small text files to practice the additional options of tar and bzip2.
|
All times are GMT -5. The time now is 06:50 AM. |