How to compress a Linux Directory

Something that a lot of us are always looking for is how to compress a Linux Directory.

Nothing easer than execute from the command prompt this:

tar -zcvf name-of-the-archive-we-want.tar.gz /path/to/the/folder

This will create the name-of-the-archive-we-want.tar.gz file that can be extracted using this command

tar -zxvf name-of-the-archive-we-want.tar.gz 

Hope you found this helpful

d3

d3 is an experienced Software Engineer/Developer/Architect/Thinker with a demonstrated history of working in the information technology and services industry. Really passionate about technology, programming languages and problem solving. He doesn't like too much the self celebration and prefers to use that time doing something useful ...i.e. coding

You may also like...