Home  >  Article  >  php教程  >  How to decompress .tar.gz .tar.bz2 command under linux

How to decompress .tar.gz .tar.bz2 command under linux

高洛峰
高洛峰Original
2017-01-07 13:48:471857browse

The most common source code packages downloaded from the Internet are .tar.gz packages, and some are .tar.bz2 packages.

It is very simple to decompress:

.tar The .gz format decompression command is tar -zxvpf xx.tar.gz
.tar.bz2 The format decompression command is tar -jxvpf xx.tar.bz2
//p parameter can retain the original file permissions (very important)

The above is the editor’s introduction to how to decompress .tar.gz .tar.bz2 command under Linux. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will promptly Reply to everyone!

For more articles related to how to decompress .tar.gz .tar.bz2 commands under Linux, please pay attention to the PHP Chinese website!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn