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/unzip/unzip.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/unzip/unzip.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/unzip/unzip.html on line 2
unzip | jarファイルの中身を見たい | 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/unzip/unzip.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/unzip/unzip.html on line 17
unzip
シェルではunzipコマンドを使用してファイルを解凍することが出来ます。
a.zipという圧縮ファイルがあるとします。中身はa.logとb.logがあるとします。
この圧縮ファイルに対して以下のようにコマンドを実行すると解凍することができます。
解凍されたファイルは、圧縮時の名前で解凍されます。

unzip a.zip
圧縮ファイルの中身を出力
圧縮ファイルの中身がどのようなファイル構成になっているか知りたい時があります。
このような時は、-lオプションを使用して圧縮ファイルの中身を確認することが出来ます。

unzip -l a.zip
すると、圧縮ファイルの中身が標準出力されます。

jarファイルも普通の圧縮ファイルなので

unzip -l test.jar | grep Test.class
というようにjarファイル内にクラスがあるかどうか調べることができます。

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/unzip/unzip.html on line 82

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/unzip/unzip.html on line 82

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/unzip/unzip.html on line 91

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/unzip/unzip.html on line 91