From 36191abc18133814cc1c0e1eb0a424f46444fdda Mon Sep 17 00:00:00 2001 From: Daniel Jour Date: Thu, 4 Sep 2014 10:44:00 +0200 Subject: [PATCH] automatic compression selection for tar Using a instead of z,j,J ... makes it easy to use different compression programms --- pages/common/tar.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/tar.md b/pages/common/tar.md index 927d97d3f..c43cc0115 100644 --- a/pages/common/tar.md +++ b/pages/common/tar.md @@ -22,3 +22,7 @@ - extract a bzipped archive in the current directory `tar xjf {{source.tar.bz2}}` + +- create a compressed archive, using archive suffix to determine the compression programm + +`tar caf {{target.tar.xz}} {{file1 file2 file3}}`