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.
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -


{ 8 comments… read them below or add one }
I forgot how to do this. First result on google, exactly what I needed. Thanks.
Same for me, very useful! Also simple things can be forgotten. Thank you!
Thanks….This is what i was looking for.
It helped me as well thanks :)
It’s good to be reminded!
Thank You!
Thanks a ton.
lol just do right click compress
thanks.. can`t understand zip –help.. lol..