Shell/Bash: linux tar zip folder Example


Shell/Bash Example: This is the "linux tar zip folder" Example. compiled from many sources on the internet by

linux tar zip folder

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

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.

* Summary: This "linux tar zip folder" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!