Chapter 9 Summary
Chapter 9 Summary
efficiency and storage. Archiving files means combining multiple files into a single file, making
it smaller in size and easier to move around. Compressing files means making them smaller by
removing redundant information about the files. The compression algorithm encodes the original
file in a way that is easy to restore, consequently making the file smaller and easier to store and
send. There are two types of compression, lossless and lossy. Linux has built in tools to help with
compression, the first of which is gzip. This command compresses the text file into a new file
called a .gz file. Using the -l command, the shell will output data about the newly compressed
file compared to the original file. Using the gunzip command, the file can be restored to its
original state. To archive files, the user can use the tar command in the shell. The tar command
has three modes, create, extract, and list. To create, the user can use the tar command with -c to
create and archive. The .tar file will contain multiple files within and save storage space. The .tar
files can be compressed even further using the gzip or by using the -z option with the tar
command. By using the -t command, the user can list all of the files compressed inside of an
archive. To extract files from the archive, the user can use the -x option with the tar command.
Finally, the user can also use the classic zip files from microsoft, although it is less prevalent as
they are not as supported.