tar and gz folder code example
Example 1: how to zip with tar command
tar -czvf archive.tar.gz /usr/local/something
Example 2: how to make a tarball in linux
tar -cvzf name.tar /path/to/directory
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.