zip compress without directory path linux code example
Example 1: compress a folder linux zip
tar -zcvf example.tar.gz directorytocompress/
Example 2: linux zip a folder without compression
zip -0 -r mydir.zip mydir
tar -zcvf example.tar.gz directorytocompress/
zip -0 -r mydir.zip mydir