In this tutorial we'll be working with the TAR GZIP and BZIP2 V commands. Linux
allows you to archive files in a number of ways. The traditional method is based
on tape archives thus the TAR command. For example, you may want to consolidate
all files in from the home Mike directory into a single file. I run the
following command. I create an archive in verbose mode using the file name Mike
dot Tar and use it to create an archive of the home slash Mike directory. If I
make a mistake and screw up files in my home directory I can now restore it with
the Tar XVF Mike dash Tar command. X extracts files, V does it verbosely and F
specifies the file name. Archives can be compressed in two ways: the GZIP
command uses a compression regime similar to WinZip. The BZIP2 command
compresses archives a little bit more rigorously and naturally both compression
regimes can be reversed with related unzip commands. Let's see how that works,
first we see that my archives about ten kilobytes and now let's compress it
using the GZIP command. It automatically adds the GZ file extension and now
everything's a lot smaller. I can reverse the process, I have my original
archive and now I can use the BZIP command to compress the archive. The BZIP2
command adds the BZ2 file extension and it also compresses the archive.
Naturally I can combine these commands. I can create a GZIP archive with the
following command; C for create, Z for GZIP compression, V to do it verbosely, F
for the file name and I do it from my home directory. I can do the same in BZIP
compression mode I just substitute a J for the Z. Naturally I can reverse the
process. As before all I need to do is substitute and X for the C so instead of
creating I'm extracting, I can extract from a GZIP archive or I can extract from
a BZIP archive. Thank you and on to the next tutorial.
Red Hat Certified Technician
Michael Jang
US$ 99.95
7 hours - 103 Movies
Win Vista XP 2000,ME. Mac OS X
Ground / 2 day / Next Day
33785
136 In Stock
Apex Web Media ( Hyperteach ) P.O Box 398 Bolton BL7 9YS, United Kingdom. Tel: +44 (0) 1204 592071 Fax: +44 (0) 1204 592092 Email:
Apex Web Media ( Hyperteach ) 600 17th Street, Suite 2800, Denver CO 80202 Tel: Toll free 1866 402 1903 (USA) / 434 878 4158 Fax: 1 207 433 4356 Email: