LinuxCommandLibrary

pax

POSIX archiver

TLDR

Create archive

$ pax -wf [archive.pax] [directory]
copy
Extract archive
$ pax -rf [archive.pax]
copy
List archive contents
$ pax -f [archive.pax]
copy
Copy directory
$ pax -rw [source] [destination]
copy
Create compressed archive
$ pax -wf - [directory] | gzip > [archive.pax.gz]
copy

SYNOPSIS

pax [options] [pattern...]

DESCRIPTION

pax is the POSIX archiver. Combines tar and cpio functionality.
The tool creates and extracts archives. Portable archive exchange format.

PARAMETERS

-r

Read (extract) archive.
-w
Write (create) archive.
-f FILE
Archive file.
-v
Verbose output.
-d
Match directories only.
-k
Don't overwrite existing files.

CAVEATS

POSIX standard. Less common than tar. Portable format.

HISTORY

pax was created as a POSIX standard replacement for tar and cpio.

SEE ALSO

tar(1), cpio(1), gzip(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community