bash zip all files in directory code example
Example 1: zip all files command linux
zip -r myfiles.zip mydir
Example 2: zip entire directory ubuntu
zip -r compressed_filename.zip foldername
Example 3: zip some files linux
zip archivename.zip filename1 filename2 filename3