Suppose I have a folder named abc, it has several sub folders recursively, I want to zip everything under abc, when I use the following command
zip -r abc.zip abc/*
I get abc.zip, but it contains the top level folder abc, and everything is under abc, like abc/xxx, abc/yyy etc, How can I remove the top level folder abc? I want to put everything directly in abc.zip.
Note:
cd abc zip -r ../abc.zip *
Though I will say in most cases keeping it abc makes for easier management.