How to gzip a folder in linux
- how to gzip in linux
- how to gz in linux
- how to gunzip in linux
- how to gzip directory in linux
How to unzip gz file in linux
Gzip example!
How to Use the gzip Command in Linux
If you want to share multiple files, compressing them all into one is the best solution you can opt for.
And on Linux, there is a utility named gzip intended to ease the whole process of compressing files and directories.
You can even manipulate the compression ratio for faster compressions!
In this guide, I will be sharing practical examples of how you can use the gzip command.
Use gzip command on Linux
To use the gzip command, you will have to follow the given syntax:
In simple words, all you have to do is append the filename with a relative option (to change the default behavior) and it will get your job done.
Compress a file using the gzip command
To compress a file using the gzip command, all you have to do is append the file path of a file to the gzip command:
For example, here, I have compressed a Debian ISO file:
But if you notice carefully, it removes the original file after compression.
So what if you want to keep the original file?
Well, here's how you do it.
Keep the original file while using the gzip command
- how to gzip file in linux
- how to install gzip in linux