bash tar gz folder code example
Example 1: tar directory
tar -czvf archive.tar.gz stuff
Example 2: 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.
tar -czvf archive.tar.gz stuff
tar cf ostechnix.tar ostechnix/
# Here, c flag refers create new archive and f refers the file name.