How to zip directory in linux explained with examples

Zip is command in linux is used for compressing files and directory.In this post we will learn how to zip the directory or folder in linux. To compress directory use the below given format zip -r give-file-name.zip Directory-name example: root@tuxworld:/opt# ls -ld teamviewer8/ drwxr-xr-x 6 root root 4096 Oct 2 08:43 teamviewer8/ root@tuxworld:/opt# zip -r … Read more