Differences
This shows you the differences between two versions of the page.
— |
systems:tar [2018/12/27 15:57] (current) eServices Greece created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== TAR File Management ====== | ||
+ | In all these examples we gunzip the outputting tar file to reduce the file size | ||
+ | |||
+ | === Create Tar containing a folder === | ||
+ | <sxh bash>tar -zcvf file-name.tar.gz source-folder</ | ||
+ | |||
+ | === Create Tar containing a folder (preserving permissions) === | ||
+ | <sxh bash>tar -pcvzf file-name.tar.gz source-folder</ | ||
+ | |||
+ | === Extract Tar === | ||
+ | <sxh bash>tar zxfv file-name.tar.gz</ | ||