Como faço para compactar apenas arquivos e não toda a estrutura de diretórios?
Use a opção -j
(junk-paths).
zip: compactar e compactar arquivos (arquivados)
-j
--junk-paths
Store just the name of a saved file (junk the path), and do not
store directory names. By default, zip will store the full path
(relative to the current directory).
...
You may want to make a zip archive that contains the files in foo, without recording the directory name, foo.
You can use the -j option to leave off the paths, as in:
zip -j foo foo/*