Home > Article > Operation and Maintenance > How to decompress tar.gz in Linux
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.
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!