This steps will show you how you can Zip a Directory in Linux CentOS or redhat operating system.
Zip is the most widely used archive files format that supports loss-free data compression and it may contain a large number of compressed files.
1. How to install zip in linux CentOS or Redhat
# yum install zip unzip
2) Zip folder backup to backup.zip
# zip backup.zip backup/ adding: backup/ (stored 0%)
Now, if we list the files then we are going to get a new compressed file named as backup.zip which is the result of the execution of previous command.