3

I'm trying to compress files in a directory. Let's assume the directory is "test".

when I execute the following command and unzip the file, I get "test" folder and files inside the test folder.

zip aa.zip test/*

How do I make it so that I get only files without "test" folder when I unzip the compress file?

1 Answer 1

4

This command will work:

cd test; zip ../aa.zip *

If you need to do this for multiple directories, do this command for each one. zip will append the new files to the aa.zip archive.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .