Skip to content
Advertisement

zip the files and folders inside a parent directory without including the parent directory + Amazon Linux

Is there a Linux command to zip the files and folders inside a parent directory without including the parent directory. From all the solutions that I tried, the parent directory also is getting zipped

Advertisement

Answer

Move into the folder, then zip :

JavaScript

Dirty, but effective

Or, in a more fancy way, using tar:

JavaScript
Advertisement