I need to zip all files and subdirectories in a folder including those that start with a
I'm in a folder called
synthesis and I need to zip all the files and subdirectories under it (but not the
synthesis folder itself). The
synthesis folder includes a subdirectory called
.sopc_builder that has a file in it.
I tried the following command
zip -r synthesis.zip *
I copied the resulting
synthesis.zip to another folder and listed the zip contents in a file:
unzip -l synthesis.zip > filelist.txt
filelist.txt doesn't have the
.sopc_builder and its file in the list.
I saw on some post something about a Linux command
shopt, but didn't really understand it.
The version of Linux I'm using is Red Hat Enterprise Linux Server 7.9 at my company.
Thanks in advance, Grady