- Advertisement -

In this tutorial we will learn, how to zip the directory in linux with command line. Zip is a compression and file packaging utility for Linux, Unix, Windows and various Operating system. The zip helps to compress and reduce the size of file and directory. To zip a directory, first of all we will check, do we have zip command installed in Linux system.

The below command will help to find is zip installed or not.

If you find it is not installed in system then install with given below command.

After confirmation of installed zip package,now we will zip or compress the directory in Linux system. Use the given below command.

- Advertisement -

The command will compress the directory with extension .zip.
In above given eg. the compressed file name would be backup.zip

- Advertisement -

There are no comments yet

  • Hello, guest