how to zip all type of files in adirectory using zip command in linux code example Example: convert all files and folders in current directory into zip in linux zip -r myfiles.zip mydir