I used this command

>zip -r name.zip myfolder

to zip files in a folder. I want to zip all the files in myfolder without including myfolder in zip file. How do I do that?

1 Answer 1


I managed to overcome this problem using below command

>cd myfolder
>zip -r name.zip .

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.