Linux Zip the files of a directory without the folder

Viewed 15

I have a dir in path: /home/admins/myDir/lastVersion

and this lastVersion dir includes subdirs like

-lastVersion
   -version1
   -version2
   -version3

When I cd to /home/admins/myDir

and run the

     zip -r myZip lastVersion

     or  zip -r myZip lastVersion/*

my zip file includes also lastVersion folder. I just want to see -version1 -version2 -version3 directories in the zipfolder. How can I avoid the this parent folder in zip file?

0 Answers
Related