From 5a12e7c134274dba706667107d10d231517d3e05 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Wed, 26 Aug 2009 10:00:38 -0500 Subject: Slackware 13.0 Wed Aug 26 10:00:38 CDT 2009 Slackware 13.0 x86_64 is released as stable! Thanks to everyone who helped make this release possible -- see the RELEASE_NOTES for the credits. The ISOs are off to the replicator. This time it will be a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We're taking pre-orders now at store.slackware.com. Please consider picking up a copy to help support the project. Once again, thanks to the entire Slackware community for all the help testing and fixing things and offering suggestions during this development cycle. As always, have fun and enjoy! -P. --- slackbook/html/archive-files.html | 145 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 slackbook/html/archive-files.html (limited to 'slackbook/html/archive-files.html') diff --git a/slackbook/html/archive-files.html b/slackbook/html/archive-files.html new file mode 100644 index 000000000..c29542a95 --- /dev/null +++ b/slackbook/html/archive-files.html @@ -0,0 +1,145 @@ + + + + +Archive Files + + + + + + + + + + +
+

Chapter 15 Archive Files

+ +
+
+
Table of Contents
+ +
15.1 gzip
+ +
15.2 bzip2
+ +
15.3 tar
+ +
15.4 zip
+
+
+ +
+

15.1 gzip

+ +

gzip(1) is the GNU compression program. It takes a single +file and compresses it. The basic usage is as follows:

+ + + + + +
+
+% gzip filename
+
+
+ +

The resulting file will be named filename.gz and will usually be smaller than the input +file. Note that filename.gz will replace filename. This means that filename will +no longer exist, even though a gzipped copy will. Regular text files will compress +nicely, while jpeg images, mp3s, and other such files will not compress too well as they +are already compressed. This basic usage is a balance of final file size and compression +time. The maximum compression can be achieved like so:

+ + + + + +
+
+% gzip -9 filename
+
+
+ +

This will take a longer time to compress the file, but the result will be as small as +gzip can make it. Using lower values for the command line option +will cause it to compress faster, but the file will not be as compressed.

+ +

Decompressing gzipped files can be done using two commands, which are really just the +same program. gzip will decompress any file with a recognized +file extension. A recognized extension can be any of the following: .gz, -gz, .z, +-z, .Z, or -Z. The first method is to call gunzip(1) +on a file, like so:

+ + + + + +
+
+% gunzip filename.gz
+
+
+ +

This will leave a decompressed version of infile in the current directory, and the .gz extension will be stripped from the filename. gunzip is really part of gzip and is +identical to gzip -d. As such, gzip is +often pronounced gunzip, as that name just sounds cooler. +:^)

+
+
+ + + + + -- cgit v1.2.3