m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-11-03 22:52:00 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-11-03 22:52:00 +0100
commit6f4913a08bc62bcafbce58b3db6c7bb4bef89208 (patch)
treebeff8150887407b45b61bafdbbe75dd462647fdc
parenta36cc23ccce1da4d48887af0bd39b5a9abc82cc5 (diff)
Add gzip flag
-rw-r--r--tar.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/tar.md b/tar.md
index 9823dda..1560c7c 100644
--- a/tar.md
+++ b/tar.md
@@ -5,6 +5,9 @@
tar -cf <new archive name> <files>
# usually tar -cf directory.tar directory/
+ # gzipped:
+ tar -czf archive.tar.gz files...
+
## List contents (-t)
tar -tf <archive>