zip all files and subfolders linux code example
Example 1: zip all files command linux
zip -r myfiles.zip mydir
Example 2: zip some files linux
zip archivename.zip filename1 filename2 filename3
zip -r myfiles.zip mydir
zip archivename.zip filename1 filename2 filename3