Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pages/common/tar.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
> Often combined with a compression method, such as `gzip` or `bzip2`.
> More information: <https://www.gnu.org/software/tar/manual/tar.html>.

- [c]reate an archive and write it to a [f]ile:

Check failure on line 7 in pages/common/tar.md

View workflow job for this annotation

GitHub Actions / build

reate ==> create, relate

`tar cf {{path/to/target.tar}} {{path/to/file1 path/to/file2 ...}}`

- [c]reate a g[z]ipped archive and write it to a [f]ile:

Check failure on line 11 in pages/common/tar.md

View workflow job for this annotation

GitHub Actions / build

reate ==> create, relate

`tar czf {{path/to/target.tar.gz}} {{path/to/file1 path/to/file2 ...}}`

- [c]reate a g[z]ipped (compressed) archive from a directory using relative paths:

Check failure on line 15 in pages/common/tar.md

View workflow job for this annotation

GitHub Actions / build

reate ==> create, relate

`tar czf {{path/to/target.tar.gz}} {{[-C|--directory]}} {{path/to/directory}} .`

Expand All @@ -24,9 +24,9 @@

`tar xf {{path/to/source.tar[.gz|.bz2|.xz]}} {{[-C|--directory]}} {{path/to/directory}}`

- [c]reate a compressed archive and write it to a [f]ile, using the file extension to [a]utomatically determine the compression program:

Check failure on line 27 in pages/common/tar.md

View workflow job for this annotation

GitHub Actions / build

reate ==> create, relate

`tar caf {{path/to/target.tar.xz}} {{path/to/file1 path/to/file2 ...}}`

Check failure on line 29 in pages/common/tar.md

View workflow job for this annotation

GitHub Actions / build

caf ==> calf

- Lis[t] the contents of a tar [f]ile [v]erbosely:

Expand All @@ -35,3 +35,7 @@
- E[x]tract files matching a pattern from an archive [f]ile:

`tar xf {{path/to/source.tar}} --wildcards "{{*.html}}"`

- Extract only specific files from an archive:
`tar xf {{source.tar}} {{path/to/file1}} {{path/to/file2}}`

Loading