Prerequisite Skills / Working with tar, gzip, & bzip2v
Subtitles of the Movie
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.
Tutorial Information
| Course: | Red Hat Certified Technician |
| Author: | Michael Jang |
| SKU: | 33785 |
| ISBN: | 1-933736-97-6 |
| Release Date: | 2007-07-24 |
| Duration: | 7 hrs / 103 lessons |
| Captions: | For Online University members only |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 98,729 Video Tutorials (23,265 free)
- Video Available as Flash or QuickTime
- Over 1026 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 