ubuntu compress folder code example
Example 1: compress folder ubuntu
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 2: zip entire directory ubuntu
zip -r compressed_filename.zip foldername
Example 3: create zip file ubuntu
zip -r output_file.zip file1 folder1