From c65fde1b3a3a68a117bcdd8b554af3dff8f8ffdb Mon Sep 17 00:00:00 2001 From: daiyue Date: Thu, 9 Mar 2017 18:50:36 +0800 Subject: [PATCH] Update tar Add extract a .tar in specified Directory --- cheat/cheatsheets/tar | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/tar b/cheat/cheatsheets/tar index 088137a..41173b2 100644 --- a/cheat/cheatsheets/tar +++ b/cheat/cheatsheets/tar @@ -19,6 +19,9 @@ tar -xjvf /path/to/foo.tgz # To create a .bz2 archive: tar -cjvf /path/to/foo.tgz /path/to/foo/ +# To extract a .tar in specified Directory: +tar -xvf /path/to/foo.tar -C /path/to/destination/ + # To list the content of an .bz2 archive: tar -jtvf /path/to/foo.tgz