Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/users/2/moriya-h5/web/confrage/unix/unix_command/zip/zip.html on line 2

Warning: include_once(http://www.confrage.com/bin/header.php): failed to open stream: no suitable wrapper could be found in /home/users/2/moriya-h5/web/confrage/unix/unix_command/zip/zip.html on line 2

Warning: include_once(): Failed opening 'http://www.confrage.com/bin/header.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/unix/unix_command/zip/zip.html on line 2
zip | UNIX | 株式会社CONFRAGE
Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/unix/unix_command/zip/zip.html on line 17

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/unix/unix_command/zip/zip.html on line 17
複数ファイルを圧縮
複数ファイルを圧縮するにはファイルを正規表現で指定するか、一つ一つ指定していきます。
一つずつ指定する場合は以下のようにします。

zip a.zip a.log b.log
正規表現で複数ファイルを指定する場合は

zip a.zip *.log
というように第二引数で正規表現を使用してファイルを指定します。

圧縮ファイルを操作
既に圧縮しているファイル(ab.zip)が存在するとします。このファイルを複数ファイル(a.logとb.log)から成るとします。
この圧縮ファイル中から圧縮前のファイル(例えばa.log)ファイルから削除することができます。
圧縮ファイル中からファイルを削除するには、以下のように-dオプションを使用して実行します。

zip -d ab.zip a.log
zip形式のファイルを解凍するunzipコマンドについては こちら を御覧下さい。

Back to top

Information

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/unix/unix_command/zip/zip.html on line 81

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/unix/unix_command/zip/zip.html on line 81

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/unix/unix_command/zip/zip.html on line 90

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/unix/unix_command/zip/zip.html on line 90