2019-04-06 13:40:26 +01:00
|
|
|
# pax
|
|
|
|
|
|
|
|
> Archiving and copying utility.
|
meshlabserver, nkf, obs, pax, pdfimages, pinky, pssh, s, sd, sendmail, sftp: add link (#6971)
2021-10-17 05:23:56 +01:00
|
|
|
> More information: <https://manned.org/pax.1p>.
|
2019-04-06 13:40:26 +01:00
|
|
|
|
|
|
|
- List the contents of an archive:
|
|
|
|
|
|
|
|
`pax -f {{archive.tar}}`
|
|
|
|
|
pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names
* pages*: fix brand and technical names
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git
* bzegrep: enclose egrep with backticks
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-force-clone: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* gitwatch: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* hub-init: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* pages.*: use Linux instead of GNU/Linux
---------
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 04:46:32 +00:00
|
|
|
- List the contents of a `gzip` archive:
|
2019-04-06 13:40:26 +01:00
|
|
|
|
|
|
|
`pax -zf {{archive.tar.gz}}`
|
|
|
|
|
|
|
|
- Create an archive from files:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`pax -wf {{target.tar}} {{path/to/file1 path/to/file2 ...}}`
|
2019-04-06 13:40:26 +01:00
|
|
|
|
|
|
|
- Create an archive from files, using output redirection:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`pax -w {{path/to/file1 path/to/file2 ...}} > {{target.tar}}`
|
2019-04-06 13:40:26 +01:00
|
|
|
|
|
|
|
- Extract an archive into the current directory:
|
|
|
|
|
|
|
|
`pax -rf {{source.tar}}`
|
|
|
|
|
|
|
|
- Copy to a directory, while keeping the original metadata; `target/` must exist:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`pax -rw {{path/to/file1}} {{path/to/directory1 path/to/directory2 ...}} {{target/}}`
|