Home  >  Article  >  Operation and Maintenance  >  How to decompress tar.gz in Linux

How to decompress tar.gz in Linux

藏色散人
藏色散人Original
2020-11-06 13:43:48206433browse

How to decompress tar.gz in Linux: First open the terminal command window; then enter and execute the command "tar -zxvf compressed file name.tar.gz" to decompress tar.gz to the specified folder.

How to decompress tar.gz in Linux

Recommended: "linux tutorial"

*.tar.gz file decompression command under Linux

1. Compression command:

Command format: tar -zcvf Compressed file name.tar.gz Compressed file name

You can switch to the current directory first . Both the compressed file name and the compressed file name can be added to the path.

2. Decompression command:

Command format: tar -zxvf Compressed file name.tar.gz

The decompressed file can only placed in the current directory.

The above is the detailed content of How to decompress tar.gz in Linux. For more information, please follow other related articles on 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