mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 13:33:43 +02:00
pax: add page (#2870)
This commit is contained in:
parent
9abddffd09
commit
5b04061571
1 changed files with 27 additions and 0 deletions
27
pages/common/pax.md
Normal file
27
pages/common/pax.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# pax
|
||||
|
||||
> Archiving and copying utility.
|
||||
|
||||
- List the contents of an archive:
|
||||
|
||||
`pax -f {{archive.tar}}`
|
||||
|
||||
- List the contents of a gzipped archive:
|
||||
|
||||
`pax -zf {{archive.tar.gz}}`
|
||||
|
||||
- Create an archive from files:
|
||||
|
||||
`pax -wf {{target.tar}} {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}`
|
||||
|
||||
- Create an archive from files, using output redirection:
|
||||
|
||||
`pax -w {{path/to/file1}} {{path/to/file2}} {{path/to/file3}} > {{target.tar}}`
|
||||
|
||||
- Extract an archive into the current directory:
|
||||
|
||||
`pax -rf {{source.tar}}`
|
||||
|
||||
- Copy to a directory, while keeping the original metadata; `target/` must exist:
|
||||
|
||||
`pax -rw {{path/to/file1}} {{path/to/dir1}} {{path/to/dir2}} {{target/}}`
|
Loading…
Add table
Reference in a new issue