<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fzip</id>
	<title>Comandos de la terminal/zip - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fzip"/>
	<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/zip&amp;action=history"/>
	<updated>2026-04-04T16:00:19Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/zip&amp;diff=6160&amp;oldid=prev</id>
		<title>Rrc en 21:25 26 sep 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/zip&amp;diff=6160&amp;oldid=prev"/>
		<updated>2014-09-26T21:25:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#zip| zip]]&lt;br /&gt;
&lt;br /&gt;
== zip ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr rar]# zip --help&lt;br /&gt;
Copyright (c) 1990-2008 Info-ZIP - Type &amp;#039;zip &amp;quot;-L&amp;quot;&amp;#039; for software license.&lt;br /&gt;
Zip 3.0 (July 5th 2008). Usage:&lt;br /&gt;
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]&lt;br /&gt;
  The default action is to add or replace zipfile entries from list, which&lt;br /&gt;
  can include the special name - to compress standard input.&lt;br /&gt;
  If zipfile and list are omitted, zip compresses stdin to stdout.&lt;br /&gt;
  -f   freshen: only changed files  -u   update: only changed or new files&lt;br /&gt;
  -d   delete entries in zipfile    -m   move into zipfile (delete OS files)&lt;br /&gt;
  -r   recurse into directories     -j   junk (don&amp;#039;t record) directory names&lt;br /&gt;
  -0   store only                   -l   convert LF to CR LF (-ll CR LF to LF)&lt;br /&gt;
  -1   compress faster              -9   compress better&lt;br /&gt;
  -q   quiet operation              -v   verbose operation/print version info&lt;br /&gt;
  -c   add one-line comments        -z   add zipfile comment&lt;br /&gt;
  -@   read names from stdin        -o   make zipfile as old as latest entry&lt;br /&gt;
  -x   exclude the following names  -i   include only the following names&lt;br /&gt;
  -F   fix zipfile (-FF try harder) -D   do not add directory entries&lt;br /&gt;
  -A   adjust self-extracting exe   -J   junk zipfile prefix (unzipsfx)&lt;br /&gt;
  -T   test zipfile integrity       -X   eXclude eXtra file attributes&lt;br /&gt;
  -y   store symbolic links as the link instead of the referenced file&lt;br /&gt;
  -e   encrypt                      -n   don&amp;#039;t compress these suffixes&lt;br /&gt;
  -h2  show more help&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr rar]# zip --version&lt;br /&gt;
Copyright (c) 1990-2008 Info-ZIP - Type &amp;#039;zip &amp;quot;-L&amp;quot;&amp;#039; for software license.&lt;br /&gt;
This is Zip 3.0 (July 5th 2008), by Info-ZIP.&lt;br /&gt;
Currently maintained by E. Gordon.  Please send bug reports to&lt;br /&gt;
the authors using the web page at www.info-zip.org; see README for details.&lt;br /&gt;
&lt;br /&gt;
Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,&lt;br /&gt;
as of above date; see http://www.info-zip.org/ for other sites.&lt;br /&gt;
&lt;br /&gt;
Compiled with gcc 4.8.2 for Unix (Linux ELF) on Oct 18 2013.&lt;br /&gt;
&lt;br /&gt;
Zip special compilation options:&lt;br /&gt;
	USE_EF_UT_TIME       (store Universal Time)&lt;br /&gt;
	BZIP2_SUPPORT        (bzip2 library version 1.0.6, 6-Sept-2010)&lt;br /&gt;
	    bzip2 code and library copyright (c) Julian R Seward&lt;br /&gt;
	    (See the bzip2 license for terms of use)&lt;br /&gt;
	SYMLINK_SUPPORT      (symbolic links supported)&lt;br /&gt;
	LARGE_FILE_SUPPORT   (can read and write large files on file system)&lt;br /&gt;
	ZIP64_SUPPORT        (use Zip64 to store large files in archives)&lt;br /&gt;
	UNICODE_SUPPORT      (store and read UTF-8 Unicode paths)&lt;br /&gt;
	STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field)&lt;br /&gt;
	UIDGID_NOT_16BIT     (old Unix 16-bit UID/GID extra field not used)&lt;br /&gt;
	[encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3)&lt;br /&gt;
&lt;br /&gt;
Encryption notice:&lt;br /&gt;
	The encryption code of this program is not copyrighted and is&lt;br /&gt;
	put in the public domain.  It was originally written in Europe&lt;br /&gt;
	and, to the best of our knowledge, can be freely distributed&lt;br /&gt;
	in both source and object forms from any country, including&lt;br /&gt;
	the USA under License Exception TSU of the U.S. Export&lt;br /&gt;
	Administration Regulations (section 740.13(e)) of 6 June 2002.&lt;br /&gt;
&lt;br /&gt;
Zip environment options:&lt;br /&gt;
             ZIP:  [none]&lt;br /&gt;
          ZIPOPT:  [none]&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ zip -h2&lt;br /&gt;
&lt;br /&gt;
Extended Help for Zip&lt;br /&gt;
&lt;br /&gt;
See the Zip Manual for more detailed help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zip stores files in zip archives.  The default action is to add or replace&lt;br /&gt;
zipfile entries.&lt;br /&gt;
&lt;br /&gt;
Basic command line:&lt;br /&gt;
  zip options archive_name file file ...&lt;br /&gt;
&lt;br /&gt;
Some examples:&lt;br /&gt;
  Add file.txt to z.zip (create z if needed):      zip z file.txt&lt;br /&gt;
  Zip all files in current dir:                    zip z *&lt;br /&gt;
  Zip files in current dir and subdirs also:       zip -r z .&lt;br /&gt;
&lt;br /&gt;
Basic modes:&lt;br /&gt;
 External modes (selects files from file system):&lt;br /&gt;
        add      - add new files/update existing files in archive (default)&lt;br /&gt;
  -u    update   - add new files/update existing files only if later date&lt;br /&gt;
  -f    freshen  - update existing files only (no files added)&lt;br /&gt;
  -FS   filesync - update if date or size changed, delete if no OS match&lt;br /&gt;
 Internal modes (selects entries in archive):&lt;br /&gt;
  -d    delete   - delete files from archive (see below)&lt;br /&gt;
  -U    copy     - select files in archive to copy (use with --out)&lt;br /&gt;
&lt;br /&gt;
Basic options:&lt;br /&gt;
  -r        recurse into directories (see Recursion below)&lt;br /&gt;
  -m        after archive created, delete original files (move into archive)&lt;br /&gt;
  -j        junk directory names (store just file names)&lt;br /&gt;
  -q        quiet operation&lt;br /&gt;
  -v        verbose operation (just &amp;quot;zip -v&amp;quot; shows version information)&lt;br /&gt;
  -c        prompt for one-line comment for each entry&lt;br /&gt;
  -z        prompt for comment for archive (end with just &amp;quot;.&amp;quot; line or EOF)&lt;br /&gt;
  -@        read names to zip from stdin (one path per line)&lt;br /&gt;
  -o        make zipfile as old as latest entry&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Syntax:&lt;br /&gt;
  The full command line syntax is:&lt;br /&gt;
&lt;br /&gt;
    zip [-shortopts ...] [--longopt ...] [zipfile [path path ...]] [-xi list]&lt;br /&gt;
&lt;br /&gt;
  Any number of short option and long option arguments are allowed&lt;br /&gt;
  (within limits) as well as any number of path arguments for files&lt;br /&gt;
  to zip up.  If zipfile exists, the archive is read in.  If zipfile&lt;br /&gt;
  is &amp;quot;-&amp;quot;, stream to stdout.  If any path is &amp;quot;-&amp;quot;, zip stdin.&lt;br /&gt;
&lt;br /&gt;
Options and Values:&lt;br /&gt;
  For short options that take values, use -ovalue or -o value or -o=value&lt;br /&gt;
  For long option values, use either --longoption=value or --longoption value&lt;br /&gt;
  For example:&lt;br /&gt;
    zip -ds 10 --temp-dir=path zipfile path1 path2 --exclude pattern pattern&lt;br /&gt;
  Avoid -ovalue (no space between) to avoid confusion&lt;br /&gt;
  In particular, be aware of 2-character options.  For example:&lt;br /&gt;
    -d -s is (delete, split size) while -ds is (dot size)&lt;br /&gt;
  Usually better to break short options across multiple arguments by function&lt;br /&gt;
    zip -r -dbdcds 10m -lilalf logfile archive input_directory -ll&lt;br /&gt;
&lt;br /&gt;
  All args after just &amp;quot;--&amp;quot; arg are read verbatim as paths and not options.&lt;br /&gt;
    zip zipfile path path ... -- verbatimpath verbatimpath ...&lt;br /&gt;
  Use -nw to also disable wildcards, so paths are read literally:&lt;br /&gt;
    zip zipfile -nw -- &amp;quot;-leadingdashpath&amp;quot; &amp;quot;a[path].c&amp;quot; &amp;quot;path*withwildcard&amp;quot;&lt;br /&gt;
  You may still have to escape or quote arguments to avoid shell expansion&lt;br /&gt;
&lt;br /&gt;
Wildcards:&lt;br /&gt;
  Internally zip supports the following wildcards:&lt;br /&gt;
    ?       (or %% or #, depending on OS) matches any single character&lt;br /&gt;
    *       matches any number of characters, including zero&lt;br /&gt;
    [list]  matches char in list (regex), can do range [ac-f], all but [!bf]&lt;br /&gt;
  If port supports [], must escape [ as [[] or use -nw to turn off wildcards&lt;br /&gt;
  For shells that expand wildcards, escape (\* or &amp;quot;*&amp;quot;) so zip can recurse&lt;br /&gt;
    zip zipfile -r . -i &amp;quot;*.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  Normally * crosses dir bounds in path, e.g. &amp;#039;a*b&amp;#039; can match &amp;#039;ac/db&amp;#039;.  If&lt;br /&gt;
   -ws option used, * does not cross dir bounds but ** does&lt;br /&gt;
&lt;br /&gt;
  For DOS and Windows, [list] is now disabled unless the new option&lt;br /&gt;
  -RE       enable [list] (regular expression) matching&lt;br /&gt;
  is used to avoid problems with file paths containing &amp;quot;[&amp;quot; and &amp;quot;]&amp;quot;:&lt;br /&gt;
    zip files_ending_with_number -RE foo[0-9].c&lt;br /&gt;
&lt;br /&gt;
Include and Exclude:&lt;br /&gt;
  -i pattern pattern ...   include files that match a pattern&lt;br /&gt;
  -x pattern pattern ...   exclude files that match a pattern&lt;br /&gt;
  Patterns are paths with optional wildcards and match paths as stored in&lt;br /&gt;
  archive.  Exclude and include lists end at next option, @, or end of line.&lt;br /&gt;
    zip -x pattern pattern @ zipfile path path ...&lt;br /&gt;
&lt;br /&gt;
Case matching:&lt;br /&gt;
  On most OS the case of patterns must match the case in the archive, unless&lt;br /&gt;
  the -ic option is used.&lt;br /&gt;
  -ic       ignore case of archive entries&lt;br /&gt;
  This option not available on case-sensitive file systems.  On others, case&lt;br /&gt;
  ignored when matching files on file system but matching against archive&lt;br /&gt;
  entries remains case sensitive for modes -f (freshen), -U (archive copy),&lt;br /&gt;
  and -d (delete) because archive paths are always case sensitive.  With&lt;br /&gt;
  -ic, all matching ignores case, but it&amp;#039;s then possible multiple archive&lt;br /&gt;
  entries that differ only in case will match.&lt;br /&gt;
&lt;br /&gt;
End Of Line Translation (text files only):&lt;br /&gt;
  -l        change CR or LF (depending on OS) line end to CR LF (Unix-&amp;gt;Win)&lt;br /&gt;
  -ll       change CR LF to CR or LF (depending on OS) line end (Win-&amp;gt;Unix)&lt;br /&gt;
  If first buffer read from file contains binary the translation is skipped&lt;br /&gt;
&lt;br /&gt;
Recursion:&lt;br /&gt;
  -r        recurse paths, include files in subdirs:  zip -r a path path ...&lt;br /&gt;
  -R        recurse current dir and match patterns:   zip -R a ptn ptn ...&lt;br /&gt;
  Use -i and -x with either to include or exclude paths&lt;br /&gt;
  Path root in archive starts at current dir, so if /a/b/c/file and&lt;br /&gt;
   current dir is /a/b, &amp;#039;zip -r archive .&amp;#039; puts c/file in archive&lt;br /&gt;
&lt;br /&gt;
Date filtering:&lt;br /&gt;
  -t date   exclude before (include files modified on this date and later)&lt;br /&gt;
  -tt date  include before (include files modified before date)&lt;br /&gt;
  Can use both at same time to set a date range&lt;br /&gt;
  Dates are mmddyyyy or yyyy-mm-dd&lt;br /&gt;
&lt;br /&gt;
Deletion, File Sync:&lt;br /&gt;
  -d        delete files&lt;br /&gt;
  Delete archive entries matching internal archive paths in list&lt;br /&gt;
    zip archive -d pattern pattern ...&lt;br /&gt;
  Can use -t and -tt to select files in archive, but NOT -x or -i, so&lt;br /&gt;
    zip archive -d &amp;quot;*&amp;quot; -t 2005-12-27&lt;br /&gt;
  deletes all files from archive.zip with date of 27 Dec 2005 and later&lt;br /&gt;
  Note the * (escape as &amp;quot;*&amp;quot; on Unix) to select all files in archive&lt;br /&gt;
&lt;br /&gt;
  -FS       file sync&lt;br /&gt;
  Similar to update, but files updated if date or size of entry does not&lt;br /&gt;
  match file on OS.  Also deletes entry from archive if no matching file&lt;br /&gt;
  on OS.&lt;br /&gt;
    zip archive_to_update -FS -r dir_used_before&lt;br /&gt;
  Result generally same as creating new archive, but unchanged entries&lt;br /&gt;
  are copied instead of being read and compressed so can be faster.&lt;br /&gt;
      WARNING:  -FS deletes entries so make backup copy of archive first&lt;br /&gt;
&lt;br /&gt;
Compression:&lt;br /&gt;
  -0        store files (no compression)&lt;br /&gt;
  -1 to -9  compress fastest to compress best (default is 6)&lt;br /&gt;
  -Z cm     set compression method to cm:&lt;br /&gt;
              store   - store without compression, same as option -0&lt;br /&gt;
              deflate - original zip deflate, same as -1 to -9 (default)&lt;br /&gt;
            if bzip2 is enabled:&lt;br /&gt;
              bzip2 - use bzip2 compression (need modern unzip)&lt;br /&gt;
&lt;br /&gt;
Encryption:&lt;br /&gt;
  -e        use standard (weak) PKZip 2.0 encryption, prompt for password&lt;br /&gt;
  -P pswd   use standard encryption, password is pswd&lt;br /&gt;
&lt;br /&gt;
Splits (archives created as a set of split files):&lt;br /&gt;
  -s ssize  create split archive with splits of size ssize, where ssize nm&lt;br /&gt;
              n number and m multiplier (kmgt, default m), 100k -&amp;gt; 100 kB&lt;br /&gt;
  -sp       pause after each split closed to allow changing disks&lt;br /&gt;
      WARNING:  Archives created with -sp use data descriptors and should&lt;br /&gt;
                work with most unzips but may not work with some&lt;br /&gt;
  -sb       ring bell when pause&lt;br /&gt;
  -sv       be verbose about creating splits&lt;br /&gt;
      Split archives CANNOT be updated, but see --out and Copy Mode below&lt;br /&gt;
&lt;br /&gt;
Using --out (output to new archive):&lt;br /&gt;
  --out oa  output to new archive oa&lt;br /&gt;
  Instead of updating input archive, create new output archive oa.&lt;br /&gt;
  Result is same as without --out but in new archive.  Input archive&lt;br /&gt;
  unchanged.&lt;br /&gt;
      WARNING:  --out ALWAYS overwrites any existing output file&lt;br /&gt;
  For example, to create new_archive like old_archive but add newfile1&lt;br /&gt;
  and newfile2:&lt;br /&gt;
    zip old_archive newfile1 newfile2 --out new_archive&lt;br /&gt;
  Cannot update split archive, so use --out to out new archive:&lt;br /&gt;
    zip in_split_archive newfile1 newfile2 --out out_split_archive&lt;br /&gt;
  If input is split, output will default to same split size&lt;br /&gt;
  Use -s=0 or -s- to turn off splitting to convert split to single file:&lt;br /&gt;
    zip in_split_archive -s 0 --out out_single_file_archive&lt;br /&gt;
      WARNING:  If overwriting old split archive but need less splits,&lt;br /&gt;
                old splits not overwritten are not needed but remain&lt;br /&gt;
&lt;br /&gt;
Copy Mode (copying from archive to archive):&lt;br /&gt;
  -U        (also --copy) select entries in archive to copy (reverse delete)&lt;br /&gt;
  Copy Mode copies entries from old to new archive with --out and is used by&lt;br /&gt;
  zip when either no input files on command line or -U (--copy) used.&lt;br /&gt;
    zip inarchive --copy pattern pattern ... --out outarchive&lt;br /&gt;
  To copy only files matching *.c into new archive, excluding foo.c:&lt;br /&gt;
    zip old_archive --copy &amp;quot;*.c&amp;quot; --out new_archive -x foo.c&lt;br /&gt;
  If no input files and --out, copy all entries in old archive:&lt;br /&gt;
    zip old_archive --out new_archive&lt;br /&gt;
&lt;br /&gt;
Streaming and FIFOs:&lt;br /&gt;
  prog1 | zip -ll z -      zip output of prog1 to zipfile z, converting CR LF&lt;br /&gt;
  zip - -R &amp;quot;*.c&amp;quot; | prog2   zip *.c files in current dir and stream to prog2 &lt;br /&gt;
  prog1 | zip | prog2      zip in pipe with no in or out acts like zip - -&lt;br /&gt;
  If Zip is Zip64 enabled, streaming stdin creates Zip64 archives by default&lt;br /&gt;
   that need PKZip 4.5 unzipper like UnZip 6.0&lt;br /&gt;
  WARNING:  Some archives created with streaming use data descriptors and&lt;br /&gt;
            should work with most unzips but may not work with some&lt;br /&gt;
  Can use -fz- to turn off Zip64 if input not large (&amp;lt; 4 GB):&lt;br /&gt;
    prog_with_small_output | zip archive -fz-&lt;br /&gt;
&lt;br /&gt;
  Zip now can read Unix FIFO (named pipes).  Off by default to prevent zip&lt;br /&gt;
  from stopping unexpectedly on unfed pipe, use -FI to enable:&lt;br /&gt;
    zip -FI archive fifo&lt;br /&gt;
&lt;br /&gt;
Dots, counts:&lt;br /&gt;
  -db       display running count of bytes processed and bytes to go&lt;br /&gt;
              (uncompressed size, except delete and copy show stored size)&lt;br /&gt;
  -dc       display running count of entries done and entries to go&lt;br /&gt;
  -dd       display dots every 10 MB (or dot size) while processing files&lt;br /&gt;
  -dg       display dots globally for archive instead of for each file&lt;br /&gt;
    zip -qdgds 10m   will turn off most output except dots every 10 MB&lt;br /&gt;
  -ds siz   each dot is siz processed where siz is nm as splits (0 no dots)&lt;br /&gt;
  -du       display original uncompressed size for each entry as added&lt;br /&gt;
  -dv       display volume (disk) number in format in_disk&amp;gt;out_disk&lt;br /&gt;
  Dot size is approximate, especially for dot sizes less than 1 MB&lt;br /&gt;
  Dot options don&amp;#039;t apply to Scanning files dots (dot/2sec) (-q turns off)&lt;br /&gt;
&lt;br /&gt;
Logging:&lt;br /&gt;
  -lf path  open file at path as logfile (overwrite existing file)&lt;br /&gt;
  -la       append to existing logfile&lt;br /&gt;
  -li       include info messages (default just warnings and errors)&lt;br /&gt;
&lt;br /&gt;
Testing archives:&lt;br /&gt;
  -T        test completed temp archive with unzip before updating archive&lt;br /&gt;
  -TT cmd   use command cmd instead of &amp;#039;unzip -tqq&amp;#039; to test archive&lt;br /&gt;
             On Unix, to use unzip in current directory, could use:&lt;br /&gt;
               zip archive file1 file2 -T -TT &amp;quot;./unzip -tqq&amp;quot;&lt;br /&gt;
             In cmd, {} replaced by temp archive path, else temp appended.&lt;br /&gt;
             The return code is checked for success (0 on Unix)&lt;br /&gt;
&lt;br /&gt;
Fixing archives:&lt;br /&gt;
  -F        attempt to fix a mostly intact archive (try this first)&lt;br /&gt;
  -FF       try to salvage what can (may get more but less reliable)&lt;br /&gt;
  Fix options copy entries from potentially bad archive to new archive.&lt;br /&gt;
  -F tries to read archive normally and copy only intact entries, while&lt;br /&gt;
  -FF tries to salvage what can and may result in incomplete entries.&lt;br /&gt;
  Must use --out option to specify output archive:&lt;br /&gt;
    zip -F bad.zip --out fixed.zip&lt;br /&gt;
  Use -v (verbose) with -FF to see details:&lt;br /&gt;
    zip reallybad.zip -FF -v --out fixed.zip&lt;br /&gt;
  Currently neither option fixes bad entries, as from text mode ftp get.&lt;br /&gt;
&lt;br /&gt;
Difference mode:&lt;br /&gt;
  -DF       (also --dif) only include files that have changed or are&lt;br /&gt;
             new as compared to the input archive&lt;br /&gt;
  Difference mode can be used to create incremental backups.  For example:&lt;br /&gt;
    zip --dif full_backup.zip -r somedir --out diff.zip&lt;br /&gt;
  will store all new files, as well as any files in full_backup.zip where&lt;br /&gt;
  either file time or size have changed from that in full_backup.zip,&lt;br /&gt;
  in new diff.zip.  Output archive not excluded automatically if exists,&lt;br /&gt;
  so either use -x to exclude it or put outside what is being zipped.&lt;br /&gt;
&lt;br /&gt;
DOS Archive bit (Windows only):&lt;br /&gt;
  -AS       include only files with the DOS Archive bit set&lt;br /&gt;
  -AC       after archive created, clear archive bit of included files&lt;br /&gt;
      WARNING: Once the archive bits are cleared they are cleared&lt;br /&gt;
               Use -T to test the archive before the bits are cleared&lt;br /&gt;
               Can also use -sf to save file list before zipping files&lt;br /&gt;
&lt;br /&gt;
Show files:&lt;br /&gt;
  -sf       show files to operate on and exit (-sf- logfile only)&lt;br /&gt;
  -su       as -sf but show escaped UTF-8 Unicode names also if exist&lt;br /&gt;
  -sU       as -sf but show escaped UTF-8 Unicode names instead&lt;br /&gt;
  Any character not in the current locale is escaped as #Uxxxx, where x&lt;br /&gt;
  is hex digit, if 16-bit code is sufficient, or #Lxxxxxx if 24-bits&lt;br /&gt;
  are needed.  If add -UN=e, Zip escapes all non-ASCII characters.&lt;br /&gt;
&lt;br /&gt;
Unicode:&lt;br /&gt;
  If compiled with Unicode support, Zip stores UTF-8 path of entries.&lt;br /&gt;
  This is backward compatible.  Unicode paths allow better conversion&lt;br /&gt;
  of entry names between different character sets.&lt;br /&gt;
&lt;br /&gt;
  New Unicode extra field includes checksum to verify Unicode path&lt;br /&gt;
  goes with standard path for that entry (as utilities like ZipNote&lt;br /&gt;
  can rename entries).  If these do not match, use below options to&lt;br /&gt;
  set what Zip does:&lt;br /&gt;
      -UN=Quit     - if mismatch, exit with error&lt;br /&gt;
      -UN=Warn     - if mismatch, warn, ignore UTF-8 (default)&lt;br /&gt;
      -UN=Ignore   - if mismatch, quietly ignore UTF-8&lt;br /&gt;
      -UN=No       - ignore any UTF-8 paths, use standard paths for all&lt;br /&gt;
  An exception to -UN=N are entries with new UTF-8 bit set (instead&lt;br /&gt;
  of using extra fields).  These are always handled as Unicode.&lt;br /&gt;
&lt;br /&gt;
  Normally Zip escapes all chars outside current char set, but leaves&lt;br /&gt;
  as is supported chars, which may not be OK in path names.  -UN=Escape&lt;br /&gt;
  escapes any character not ASCII:&lt;br /&gt;
    zip -sU -UN=e archive&lt;br /&gt;
  Can use either normal path or escaped Unicode path on command line&lt;br /&gt;
  to match files in archive.&lt;br /&gt;
&lt;br /&gt;
  Zip now stores UTF-8 in entry path and comment fields on systems&lt;br /&gt;
  where UTF-8 char set is default, such as most modern Unix, and&lt;br /&gt;
  and on other systems in new extra fields with escaped versions in&lt;br /&gt;
  entry path and comment fields for backward compatibility.&lt;br /&gt;
  Option -UN=UTF8 will force storing UTF-8 in entry path and comment&lt;br /&gt;
  fields:&lt;br /&gt;
      -UN=UTF8     - store UTF-8 in entry path and comment fields&lt;br /&gt;
  This option can be useful for multi-byte char sets on Windows where&lt;br /&gt;
  escaped paths and comments can be too long to be valid as the UTF-8&lt;br /&gt;
  versions tend to be shorter.&lt;br /&gt;
&lt;br /&gt;
  Only UTF-8 comments on UTF-8 native systems supported.  UTF-8 comments&lt;br /&gt;
  for other systems planned in next release.&lt;br /&gt;
&lt;br /&gt;
Self extractor:&lt;br /&gt;
  -A        Adjust offsets - a self extractor is created by prepending&lt;br /&gt;
             the extractor executable to archive, but internal offsets&lt;br /&gt;
             are then off.  Use -A to fix offsets.&lt;br /&gt;
  -J        Junk sfx - removes prepended extractor executable from&lt;br /&gt;
             self extractor, leaving a plain zip archive.&lt;br /&gt;
&lt;br /&gt;
More option highlights (see manual for additional options and details):&lt;br /&gt;
  -b dir    when creating or updating archive, create the temp archive in&lt;br /&gt;
             dir, which allows using seekable temp file when writing to a&lt;br /&gt;
             write once CD, such archives compatible with more unzips&lt;br /&gt;
             (could require additional file copy if on another device)&lt;br /&gt;
  -MM       input patterns must match at least one file and matched files&lt;br /&gt;
             must be readable or exit with OPEN error and abort archive&lt;br /&gt;
             (without -MM, both are warnings only, and if unreadable files&lt;br /&gt;
             are skipped OPEN error (18) returned after archive created)&lt;br /&gt;
  -nw       no wildcards (wildcards are like any other character)&lt;br /&gt;
  -sc       show command line arguments as processed and exit&lt;br /&gt;
  -sd       show debugging as Zip does each step&lt;br /&gt;
  -so       show all available options on this system&lt;br /&gt;
  -X        default=strip old extra fields, -X- keep old, -X strip most&lt;br /&gt;
  -ws       wildcards don&amp;#039;t span directory boundaries in paths&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ zip ComandosDeLaTerminal.zip ComandosDeLaTerminal&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ zip -r ComandosDeLaTerminal.zip ComandosDeLaTerminal&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
  adding: ComandosDeLaTerminal/linuxcabal.org/RadioJuventud20080119.php (deflated 74%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/linuxcabal.org/ProyectoDeLab-Ejec.pdf (deflated 10%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/linuxcabal.org/RadioJuventud20080927.php (deflated 76%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/linuxcabal.org/GNU-Y-Linux.php (deflated 67%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/linuxcabal.org/GDLReporter20060722.php (deflated 70%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/linuxcabal.org/CUTonola20131111.php (deflated 71%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/linuxcabal.org/UAZacatecas20120521.php (deflated 80%)&lt;br /&gt;
 . &lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
[&lt;br /&gt;
rrc@Llawyr ~]$ rm -rf ComandosDeLaTerminal.zip &lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ zip -ry ComandosDeLaTerminal.zip ComandosDeLaTerminal&lt;br /&gt;
  adding: ComandosDeLaTerminal/ (stored 0%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/Carpeta21/ (stored 0%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/Carpeta21/Carpeta22/ (stored 0%)&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
  adding: ComandosDeLaTerminal/MiArchivo.Err (stored 0%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/CutEjemplo (deflated 9%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/File2 (stored 0%)&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ ls -al ComandosDeLaTerminal.zip &lt;br /&gt;
-rw------- 1 rrc rrc 151338 Sep 26 16:21 ComandosDeLaTerminal.zip&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ zip -ry9 ComandosDeLaTerminal.zip ComandosDeLaTerminal&lt;br /&gt;
  adding: ComandosDeLaTerminal/ (stored 0%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/Carpeta21/ (stored 0%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/Carpeta21/Carpeta22/ (stored 0%)&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
  adding: ComandosDeLaTerminal/Agregado2 (stored 0%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/MiArchivo.Err (stored 0%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/CutEjemplo (deflated 9%)&lt;br /&gt;
  adding: ComandosDeLaTerminal/File2 (stored 0%)&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ ls -al ComandosDeLaTerminal.zip &lt;br /&gt;
-rw------- 1 rrc rrc 148791 Sep 26 16:23 ComandosDeLaTerminal.zip&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Comandos de la terminal]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>