compress folder ubuntu code example
Example 1: compress folder ubuntu
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 2: create zip file ubuntu
zip -r output_file.zip file1 folder1
Example 3: tar directory
tar -czvf archive.tar.gz stuff
Example 4: how to create a zip in ubuntu
zip -r 19ucs026ApoorvSrivastava.zip 19ucs026ApoorvSrivastava