I ran

zip book my/

it created a zip file book.zip, but with only my/ as its content, and nothing under its my/, but there is content under ./my/. I wonder how I can zip it correctly?

1 Answer 1


zip -r book my/

-r stands for recursive.

man zip (or zip -h in case man pages are not available in your system) may help you understanding other useful options as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.