# -c: Create a new archive# -f: Use archive filetar-cfarchive.tarexample.txt
tar-cfarchive.tarexample1.txtexample2.txt
# -z: filter the archive through gziptar-zcfexample.tar.gzexample/
Extract Files
# -x: Extract files from an archive# -f: Use archive filetar-xfarchive.tar
tar-xfarchive.tar.gz
# output given directorytar-xfarchive.tar--directoryarchived