File archiving is a particularly simple affair and there are quite a few different archive algorithms to pick and choose from. GZip (.gz) has for long been associated with Linux as one of its main archiving algorithms and so today’s quick command line tip highlights how to quickly create a zipped file on your system.
Simply enter the following to gzip your file:
gzip [filenameToZip] -c -v > [zippedFileName]
Conversly, to unzip a file is as simple as entering:
gunzip [zippedFileName] -c -v > [unzippedFileName]