Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
pax
    pax [options] [patterns]

Portable Archive Exchange program. When members of the first POSIX 1003.2 working group could not standardize on either tar or cpio, they invented this program.[*] (See also cpio and tar.)

[*] This period in Unix history is known as the "tar wars." :-)

GNU/Linux and Mac OS X use almost identical versions of pax, developed by the OpenBSD team, based on the original freely available version by Keith Muller.

pax operates in four modes, depending on the combinations of -r and -w:


List mode

No -r and no -w. List the contents of a pax archive. Optionally, restrict the output to filenames and/or directories that match a given pattern.


Extract mode

-r only. Extract files from a pax archive. Intermediate directories are created as needed.


Archive mode

-w only. Archive files to a new or existing pax archive. The archive is written to standard output; it may be redirected to an appropriate tape device if needed for backups.


Pass-through mode

-r and -w. Copy a directory tree from one location to another, analogous to cpio -p.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial