Never confuse education with intelligence, you can have a PhD and still be an idiot.
- Richard Feynman -



Difference between revisions of "Zip"

From Juneday education
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:<tt>zip</tt>}} Category:Shell tools Category:Bash {{ShellToolIntroduction|name=zip|description=package and compress (archive) files}} ==Description==...")
 
(Example usage)
 
Line 13: Line 13:
 
To create a backup file (called <code>src-backup.zip</code>) of the directory <code>src</code> you can use zip like this:
 
To create a backup file (called <code>src-backup.zip</code>) of the directory <code>src</code> you can use zip like this:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
$ zip -r backup.sh src
+
$ zip -r backup.zip src
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 15:21, 21 October 2019


zip - package and compress (archive) files.

On this page we only give you a short introduction with a few examples. We encourage you to read the manual (man zip).

Description

Example usage

To create a backup file (called src-backup.zip) of the directory src you can use zip like this:

$ zip -r backup.zip src