OnCallReadyStart learning

zip: package and compress (archive) files (Info-ZIP 3.0)

zip [-r] [-j] [-q] [-d] ZIPFILE FILE...

Options you will use

-r
recurse into directories (zip -r function.zip . packs the current directory)
-j
junk the paths: store just the file names
-q
quiet
-d
delete the named entries from the archive

Examples

$ zip function.zip index.mjs

one file

$ cd src && zip -r ../function.zip . && cd ..

a whole folder, contents at the root

$ unzip -l function.zip

check the layout

Gotchas

Taught in

Try zip in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.