mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
Create tar file (#25056)
This commit is contained in:
committed by
Paul Gamble
parent
6475fe2298
commit
d073722880
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user