Zipping a directory in Linux terminal
Q. How do I zip files in Linux so that I cam email them to my friend? How do I zip files on server at shell prompt?
A. 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 OS etc. This utility is installed by default on most Linux computers. he 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.
To zip directory called pics in your home directory (/home/you/pics), type the following command:
$ zip -r myvacationpics.zip /home/you/pics/
It recurse into directories (all files and directories inside pics) to produced zip file called myvacationpics.zip.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- How do I unzip multiple / many files under Linux?
- Linux how do I remove all empty directories?
- How to Linux re apply or restore SELinux security labels context
- How to delete lots of directory at a one time in Linux or UNIX
- How do I check and repair MS-DOS file systems under Linux?
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: , archiving, zip directory, zip files, zip unused files, zipping files, zip_command



Recent Comments
Yesterday ~ 8 Comments
Yesterday ~ 4 Comments
Yesterday ~ 8 Comments
Yesterday ~ 1 Comment
07/02/2008 11:36 pm (2 days ago) ~ 1 Comment