Linux gunzip
gunzip is a Linux command-line utility used for decompressing gzip-compressed files. It's a simple and powerful tool that allows you to quickly decompress files in Linux. Here's how to use gunzip:
- Decompress a file: To decompress a gzip-compressed file using gunzip, use the "gunzip" command followed by the name of the file you want to decompress. For example, to decompress a file called "file.txt.gz", use the following command:
gunzip file.txt.gz
This will create a decompressed file called "file.txt" in the same directory.
Compress a file: gunzip is used only for decompressing gzip-compressed files. To compress files, you need to use the gzip command.
Decompress multiple files: To decompress multiple gzip-compressed files, use the "gunzip" command followed by the names of the compressed files. For example, to decompress all files in the current directory with a ".gz" extension, use the following command:
gunzip *.gz
This will create a decompressed file for each file with a ".gz" extension.
gunzip is a simple and powerful tool that allows you to quickly decompress gzip-compressed files in Linux. It's commonly used to decompress files that were compressed using gzip, allowing you to easily access the uncompressed data.
Comments
Post a Comment