summaryrefslogtreecommitdiff
path: root/slackbook/html/archive-files-zip.html
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2009-08-26 10:00:38 -0500
committerEric Hameleers <alien@slackware.com>2018-05-31 22:41:17 +0200
commit5a12e7c134274dba706667107d10d231517d3e05 (patch)
tree55718d5acb710fde798d9f38d0bbaf594ed4b296 /slackbook/html/archive-files-zip.html
downloadcurrent-5a12e7c134274dba706667107d10d231517d3e05.tar.gz
Slackware 13.0slackware-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.
Diffstat (limited to 'slackbook/html/archive-files-zip.html')
-rw-r--r--slackbook/html/archive-files-zip.html114
1 files changed, 114 insertions, 0 deletions
diff --git a/slackbook/html/archive-files-zip.html b/slackbook/html/archive-files-zip.html
new file mode 100644
index 00000000..cf7ef6cd
--- /dev/null
+++ b/slackbook/html/archive-files-zip.html
@@ -0,0 +1,114 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta name="generator" content="HTML Tidy, see www.w3.org" />
+<title>zip</title>
+<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" />
+<link rel="HOME" title="Slackware Linux Essentials" href="index.html" />
+<link rel="UP" title="Archive Files" href="archive-files.html" />
+<link rel="PREVIOUS" title="tar" href="archive-files-tar.html" />
+<link rel="NEXT" title="Vi" href="vi.html" />
+<link rel="STYLESHEET" type="text/css" href="docbook.css" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+</head>
+<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
+alink="#0000FF">
+<div class="NAVHEADER">
+<table summary="Header navigation table" width="100%" border="0" cellpadding="0"
+cellspacing="0">
+<tr>
+<th colspan="3" align="center">Slackware Linux Essentials</th>
+</tr>
+
+<tr>
+<td width="10%" align="left" valign="bottom"><a href="archive-files-tar.html"
+accesskey="P">Prev</a></td>
+<td width="80%" align="center" valign="bottom">Chapter 15 Archive Files</td>
+<td width="10%" align="right" valign="bottom"><a href="vi.html"
+accesskey="N">Next</a></td>
+</tr>
+</table>
+
+<hr align="LEFT" width="100%" />
+</div>
+
+<div class="SECT1">
+<h1 class="SECT1"><a id="ARCHIVE-FILES-ZIP" name="ARCHIVE-FILES-ZIP">15.4 <tt
+class="COMMAND">zip</tt></a></h1>
+
+<p>Finally, there are two utilities that can be used on zip files. These are very common
+in the Windows world, so Linux has programs to deal with them. The compression program is
+called <tt class="COMMAND">zip</tt>(1), and the decompression program is called <tt
+class="COMMAND">unzip</tt>(1).</p>
+
+<table border="0" bgcolor="#E0E0E0" width="100%">
+<tr>
+<td>
+<pre class="SCREEN">
+<samp class="PROMPT">%</samp> <kbd class="USERINPUT">zip foo *</kbd>
+</pre>
+</td>
+</tr>
+</table>
+
+<p>This will create the file <tt class="FILENAME">foo.zip</tt>, which will contain all
+the files in the current directory. <tt class="COMMAND">zip</tt> will add the <tt
+class="FILENAME">.zip</tt> extension automatically, so there's no need to include that in
+the file name. You can also recurse through the current directory, zipping up any
+directories that are also laying around:</p>
+
+<table border="0" bgcolor="#E0E0E0" width="100%">
+<tr>
+<td>
+<pre class="SCREEN">
+<samp class="PROMPT">%</samp> <kbd class="USERINPUT">zip -r foo *</kbd>
+</pre>
+</td>
+</tr>
+</table>
+
+<p>Decompressing files is easy, as well.</p>
+
+<table border="0" bgcolor="#E0E0E0" width="100%">
+<tr>
+<td>
+<pre class="SCREEN">
+<samp class="PROMPT">%</samp> <kbd class="USERINPUT">unzip foo.zip</kbd>
+</pre>
+</td>
+</tr>
+</table>
+
+<p>This will extract all the files in the file <tt class="FILENAME">foo.zip</tt>,
+including any directories in the archive.</p>
+
+<p>The <tt class="COMMAND">zip</tt> utilities have several advanced options for creating
+self-extracting archives, leaving out files, controlling compressed file size, printing
+out what will happen, and much more. See the man pages for <tt class="COMMAND">zip</tt>
+and <tt class="COMMAND">unzip</tt> to find out how to use these options.</p>
+</div>
+
+<div class="NAVFOOTER">
+<hr align="LEFT" width="100%" />
+<table summary="Footer navigation table" width="100%" border="0" cellpadding="0"
+cellspacing="0">
+<tr>
+<td width="33%" align="left" valign="top"><a href="archive-files-tar.html"
+accesskey="P">Prev</a></td>
+<td width="34%" align="center" valign="top"><a href="index.html"
+accesskey="H">Home</a></td>
+<td width="33%" align="right" valign="top"><a href="vi.html" accesskey="N">Next</a></td>
+</tr>
+
+<tr>
+<td width="33%" align="left" valign="top"><tt class="COMMAND">tar</tt></td>
+<td width="34%" align="center" valign="top"><a href="archive-files.html"
+accesskey="U">Up</a></td>
+<td width="33%" align="right" valign="top">Vi</td>
+</tr>
+</table>
+</div>
+</body>
+</html>
+