TAR

Compress

Create Tar.gz Archive

tar cvf $1.tar.gz $1

  • $1 = Folder Name

Decompress

Extract Tar.gz Archive

tar xvf $1.tar.gz

  • $1 = Tar File Name

Split and Join

Split Tar.gz in chunks

split -b $1 $2.tar.gz “$2.tar.gz_part_”

  • $1 = Chunk Size

  • $2 = File Name

Join Splits

cat $1.tar.gz_part_a* > $1.tar.gz

  • $1 = File Name