Assume the structure:
/foo/bar/
I want to run the unix zip utility , compressing the folder barand all its files and subfolders, from foo, but does not have a folder barinside the zip, using only the command line.
If I try to use the argument -j, it does not create the folder of folders inside the zip as I want, but does not create folder1and folder2. Execution -rjdoes not work.
(I know that I can enter the panel and do it. zip -r bar.zip .I want to know whether it is possible to do what $ / foo / bar / is zip -r bar.zip ., but to do it from $ / foo).
source
share