How to compress a folder ------------------------ Using tar and gzip, you can compress a whole folder by using the following command: .. code-block:: shell $tar -zcvf .tar.gz