Ubuntu Terminal: How to Quickly GZip a File

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]

You might also enjoy:

About Craig Lotter

Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under the Funakoshi karate style and for the most part, simply enjoys life with his amazing wife and daughter. Oh, and he draws ever now and then too.
This entry was posted in Software & Websites, Tutorials and tagged , , , , , , . Bookmark the permalink.
  • http://blog.sven.co.za Sven Welzel

    If you're gzip'ping a single file, gzip FILENAME will suffice, and FILENAME.gz will be outputted; gunzip FILENAME.gz or for that matter zcat FILENAME.gz will decompress the file in one go as FILENAME

  • http://www.craiglotter.co.za Craig Lotter

    So even simpler then – thanks Mr. Sven! :)

blog comments powered by Disqus