diff --git a/cheatsheets/tar b/cheatsheets/tar index ea12125..efa615f 100644 --- a/cheatsheets/tar +++ b/cheatsheets/tar @@ -21,3 +21,6 @@ tar -cjvf /path/to/foo.tgz /path/to/foo/ # To list the content of an .bz2 archive: tar -jtvf /path/to/foo.tgz + +# To create a .gz archive and exclude all jpg,gif,... from the tgz +tar czvf /path/to/foo.tgz --exclude=\*.{jpg,gif,png,wmv,flv,tar.gz,zip} /path/to/foo/