1 |
tar -cvzf <output filename> <directory> |
this means:
-c = create new archive
-v = be verbose
-z = compress using gzip
-f = filename to create for the new archive
for the directory dont to “directory/*” just to “directory” with no slash
filenames should end in “.tar.gz” as they are tarr’ed then zipped
Use this to untar:
1 |
tar -xzvf <filename.tar.gz> |