How To Zip A Folder In Linux

How To Zip A Folder In Linux

zip is a compression and file packaging utility for Unix, Linux, VMS, MSDOS, OS/2, Windows NT, Minix, Atari and Macintosh, Amiga and Acorn RISC and many other operating systems.
This utility is installed by default on most Linux computers and servers. The 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.

Syntax

zip’s syntax is:

zip file.zip file1 file2 
zip file.zip dir1 
zip -option file.zip dir1

To zip directory called pics in your home directory (/home/you/pics), type the following command:
$ zip -r myvacationpics.zip /home/you/pics/
or
$ zip -r myvacationpics /home/you/pics/
The -r option recurse into directories (all files and directories inside pics) to produced zip file called myvacationpics.zip. You can travel the directory structure recursively starting at the current directory. In this example, all the files matching *.c in the tree starting at the current directory are stored into a zip archive named mycode.zip.

zip -R mycode.zip "*.c"

Please note that *.c will match file.c, dir1/file.c and dir1/dir2/.c and so on.

See Also

How To Apply Makeup

How To Activate Windows 10

How To Apply For US Visa

How To Answer Query

How To Apply For UK Visa

How To Become Rich

How To Be Successful in Life

How To Bake a Cake

How To Buy Bitcoin

How To Become Fat

How To Create An Email Address

How To Create A Website

How To Create A Blog

How To Change Facebook Name

How To Cook Jollof Rice

How To Create An App

How To Check Airtel Number

How To Download From Youtube

How To Do Makeup

How To Draw

How To Delete My Facebook Account

How To Download Vedios Facebook

How To Drive A  Car

How To Download Movies

How To Earn Money Online

How To Earn Bitcoins

How To Edit PDF File

How To Eat Quail Eggs

How To Eat Bitter Kola

How To Enter University of Ghana

How To Eat Garlic

How To Format A Laptop

How To Flash An Android Phone

How To Fix Weave

How To Get Pink Lips

How To Get A Flat Tummy

How To Gain Weight

How To Get Pregnant

How To Get A Smooth Face

How To Grow Tall

How To Get Bigger Hips

How To Hack

How To Hack WiFi

How To Hack A Phone

How To Have Twins

How To Hard Reset Windows Phone

How To Install Windows 10

How To Install Windows 7

Pages ( 1 of 3 ): 1 23Next Page »