拡張子.tgz.gzファイルの解凍の仕方

拡張子.tgz.gzファイルの解凍の仕方


 拡張子.tgz.gzのファイルは、gzip+tarで圧縮された形式だ。以下のコマンドで、解凍(展開)できる。
gunzip file.tgz.gz
 ファイルが解凍され、file.tgzが出てくる。
tar xvzf file.tgz
 ファイルが展開される


使用例


%ls

HTTP_Request2-0.5.2.tgz.gz

%gunzip HTTP_Request2-0.5.2.tgz.gz

%ls

HTTP_Request2-0.5.2.tgz

%tar xvzf HTTP_Request2-0.5.2.tgz

x package.xml

x HTTP_Request2-0.5.2/Request2/Adapter/Curl.php

x HTTP_Request2-0.5.2/Request2/Adapter/Mock.php

x HTTP_Request2-0.5.2/Request2/Adapter/Socket.php

x HTTP_Request2-0.5.2/Request2/Observer/Log.php

x HTTP_Request2-0.5.2/Request2/Adapter.php

x HTTP_Request2-0.5.2/Request2/Exception.php

x HTTP_Request2-0.5.2/Request2/MultipartBody.php

x HTTP_Request2-0.5.2/Request2/Response.php

x HTTP_Request2-0.5.2/tests/_files/bug_15305

x HTTP_Request2-0.5.2/tests/_files/empty.gif

x HTTP_Request2-0.5.2/tests/_files/plaintext.txt

x HTTP_Request2-0.5.2/tests/_files/response_cookies

x HTTP_Request2-0.5.2/tests/_files/response_deflate

x HTTP_Request2-0.5.2/tests/_files/response_gzip

x HTTP_Request2-0.5.2/tests/_files/response_gzip_broken

x HTTP_Request2-0.5.2/tests/_files/response_headers

x HTTP_Request2-0.5.2/tests/Request2/Adapter/AllTests.php

x HTTP_Request2-0.5.2/tests/Request2/Adapter/MockTest.php

x HTTP_Request2-0.5.2/tests/Request2/AllTests.php

x HTTP_Request2-0.5.2/tests/Request2/MultipartBodyTest.php

x HTTP_Request2-0.5.2/tests/Request2/ResponseTest.php

x HTTP_Request2-0.5.2/tests/AllTests.php

x HTTP_Request2-0.5.2/tests/ObserverTest.php

x HTTP_Request2-0.5.2/tests/Request2Test.php

x HTTP_Request2-0.5.2/docs/examples/upload-rapidshare.php

x HTTP_Request2-0.5.2/Request2.php

%