From d073722880833f755ef486e6d0b0e7d44f79f321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20METZ?= <31829929+condor-webdev@users.noreply.github.com> Date: Sat, 11 May 2019 23:09:05 +0200 Subject: [PATCH] Create tar file (#25056) --- guide/english/bash/bash-tar/index.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 guide/english/bash/bash-tar/index.md diff --git a/guide/english/bash/bash-tar/index.md b/guide/english/bash/bash-tar/index.md new file mode 100644 index 0000000000..68072e6515 --- /dev/null +++ b/guide/english/bash/bash-tar/index.md @@ -0,0 +1,18 @@ +--- +title: Bash tar +--- + +## Bash command: tar + +**GNU 'tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive.** + +Examples : + +_Create archive.tar from files file1 and file2_ +``` +tar -cf archive.tar file1 file2 +``` +_Extract all files in current directory_ +``` +tar -xf archive.tar +```