Posts

Showing posts with the label zip in unix

Using tar to compress folders in Unix

To compress : tar -cf pictures.tar pics/; gzip pictures.tar Or if you want to combine the gzip and the tar creation in one command: tar -czf pictures.tar.gz pics/ To decompress : gunzip pictures.tar.gz; tar -xvf pictures.tar

Zipping A Directory In Linux

Zip is a compression and file packaging utility for Unix. This utility is installed by default on most Linux computers. he program is useful for packaging a set of files for distribution; for archiving files; and for saving disk space by temporarily compressing unused files or directories. To zip directory called MyDir in your home directory (/home/MyDir), type the following command: $ zip -r mydir.zip /home/MyDir