Linux how to: Zip contents of a directory, excluding certain sub
![Linux how to: Zip contents of a directory, excluding certain sub](https://silicondales.com/wp-content/uploads/2016/03/zip-amp-banner-size.jpg)
Have you ever wanted to zip an entire directory, but exclude the contents of one or two (or more!) sub-directories, using PuTTy (or another terminal) over SSH.
![](https://linuxhint.com/wp-content/uploads/2021/05/2-20.jpg)
How to exclude files from a zip archive in Linux
![](https://www.cyberciti.biz/media/new/faq/2006/02/xz-vs-gz-or-gzip-vs-bzip2-vs-compress-vs-zstd-compression-size-with-tar-command.png)
How do I Compress a Whole Linux or UNIX Directory? - nixCraft
![](https://itslinuxfoss.com/wp-content/uploads/2023/01/Zip-All-Files-In-A-Directory-In-Linux-8.png)
How Do I Zip All Files In A Directory In Linux? – Its Linux FOSS
![](https://cdn.mos.cms.futurecdn.net/JgXV89feAVtYPSUUZRKSg3.jpg)
How To Zip Files in Linux
![](https://adamtheautomator.com/wp-content/uploads/2021/07/13.png)
Learn How to Zip and Unzip Files in Linux and be a Zip Master
![](https://content.spiceworksstatic.com/service.community/p/how_to_step_attachments/0000130731/5c76f111/attached_file/4449fa83f2e80a0bb37c9bae3aab2ccbe8381e8d81d32fd472448d5b240d548a_Command_line.png)
Zip a folder using 7-Zip command line to zip all the contents
![](https://www.tecmint.com/wp-content/uploads/2016/10/Delete-Files-Using-Bash-GlobIgnore.png)
3 Ways to Delete All Files in a Directory Except One or Few Files
![](https://distroid.net/wp-content/uploads/2023/10/exclude-directories-1080x680.png)
How to Exclude Directories in Linux Find Command - Distroid
![](https://www.hostinger.com/tutorials/wp-content/uploads/sites/2/2021/11/how-to-remove-files-and-folders-using-linux-command-line.webp)
Remove Directory in Linux: How to Delete Files and Folders
![](https://i1.wp.com/osxdaily.com/wp-content/uploads/2017/11/opening-zip-files-mac-2.jpg?resize=350%2C200&ssl=1)
How to Exclude Files from a Zip Archive
![](https://tecadmin.net/wp-content/uploads/2015/01/excluding-files-from-zip-in-linux.png)
How to Exclude Files from a Zip Archive – TecAdmin