Zip a Folder from Linux Console

0
20

Zip  Folder Linux Console

In linux Either we can use GUI or CLI for zipping and unzipping files, Here is how to zip a folder from linux console intern called cammand line Zip  Folder Linux Console

Zip a Folder

]# zip -9 -r /home/folder.zip /home/folder

this will zip /home/folder to /home/folder.zip

where 9 indicates the zip algorithm to be used

Unzip now

to unzip replace zip with unzip

]# unzip folder.zip

this will unzip all contents to folder named folder

LEAVE A REPLY

Please enter your comment!
Please enter your name here