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}}`
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
2020-10-28 17:19:43 +00:00
|
|
|
`pax -rw {{path/to/file1}} {{path/to/directory1}} {{path/to/directory2}} {{target/}}`
|