pax Command Examples

Archiving and copying utility. More information: https://manned.org/pax.1p.

pax -f {{archive.tar}}

pax -zf {{archive.tar.gz}}

pax -wf {{target.tar}} {{path/to/file1 path/to/file2 ...}}

pax -w {{path/to/file1 path/to/file2 ...}} > {{target.tar}}

pax -rf {{source.tar}}

pax -rw {{path/to/file1}} {{path/to/directory1 path/to/directory2 ...}} {{target/}}