linux command compress folder code example
Example 1: linux tar zip folder
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 2: tar directory
tar -czvf archive.tar.gz stuff
Example 3: how to put directory in archive bash
tar cf ostechnix.tar ostechnix/
# Here, c flag refers create new archive and f refers the file name.