tarfile
I have directory Dir1, how can I zip the directory and make it as Dir1.tar?
Thanks |
please refer to man pages for trivial help like using tar, it's a LOT quicker for you...
either way: tar -cvf file.tar file1 file2 |
% tar -cvf Dir1
will create Dir1.tar but that won't compress it. It will 'tar' it like sticking lots of files together. % bunzip2 Dir1.tar will (not surprisingly) make: Dir1.tar.bz2 you could also use gzip, but I understand that bzip2 uses a better compression algorithm. Bert |
Quote:
will (not surprisingly) make: Dir1.tar.bz2 Will not create .bz2 file, but bzip2 can create new .bz2 file. bunzip2 can just unzip a file. |
All times are GMT -5. The time now is 01:09 AM. |