How do I make a .zip file that contains every file AND every folder in the directory?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
migrated from stackoverflow.com Nov 23 '10 at 23:43
|
Try:
Note - this will go recursively, i.e. it will zip all folders and all subfolders of the given folder. |
|||
|
|
|
Use the -r The name of the zip file comes first. "Recursively" means that the zip file will include subfolders of the given folder, the subfolders of those folders, and so on. |
|||
|
|
|
If you are bound to a zip, I'd use: zip -r zipfilename directoryPath The -r is the key, but you can find all the options here: |
|||
|
|