diff --git a/src/pax.1 b/src/pax.1 index cd85bb0..6320bcc 100644 --- a/src/pax.1 +++ b/src/pax.1 @@ -38,10 +38,10 @@ .Dt PAX 1 .Os .Sh NAME -.Nm pax -.Nd read and write file archives and copy directory hierarchies +.Nm opax +.Nd read and write file archives and copy directory hierarchies (OpenBSD \fIpax\fR implementation) .Sh SYNOPSIS -.Nm pax +.Nm .Op Fl 0cdOnvz .Bk -words .Op Fl f Ar archive @@ -67,7 +67,7 @@ .Ar ... .Ek .Op Ar pattern ... -.Nm pax +.Nm .Fl r .Op Fl cdiknuvzDOYZ .Bk -words @@ -103,7 +103,7 @@ .Ar ... .Ek .Op Ar pattern ... -.Nm pax +.Nm .Fl w .Op Fl 0dituvzHLOPX .Bk -words @@ -145,7 +145,7 @@ .Ar ... .Ek .Op Ar file ... -.Nm pax +.Nm .Fl r .Fl w .Op Fl 0diklntuvDHLOPXYZ @@ -647,7 +647,7 @@ are not selected and will be skipped. Reset the access times of any file or directory read or accessed by .Nm to be the same as they were before being read or accessed by -.Nm pax . +.Nm . .It Fl u Ignore files that are older (having a less recent file modification time) than a pre-existing file or archive member with the same name. @@ -733,7 +733,7 @@ and is repaired. The old BSD tar format as found in BSD4.3. The default blocksize for this format is 10240 bytes. Pathnames stored by this format must be 100 characters or less in length -(including the trailing \0 character, which means that filenames can have +(including the trailing \0 character, which means that filenames can have a maximum length of 99 characters). Only .Em regular @@ -753,9 +753,9 @@ The extended tar interchange format specified in the standard. The default blocksize for this format is 10240 bytes. Filenames stored by this format must be 100 characters or less in length -(including the trailing \0 character, which means that filenames can have +(including the trailing \0 character, which means that filenames can have a maximum length of 99 characters). -Pathnames (directorynames + filenames) stored by this format must be +Pathnames (directorynames + filenames) stored by this format must be 250 characters or less in length. .El .Pp @@ -1081,26 +1081,34 @@ than the file to which it is compared. Path in which to store temporary files. .El .Sh EXAMPLES -.Li $ pax -w -f /dev/rst0 \&. +.Li $ +.Nm +-w -f /dev/rst0 \&. .Pp Copies the contents of the current directory to the device .Pa /dev/rst0 . .Pp -.Li $ pax -v -f filename +.Li $ +.Nm +-v -f filename .Pp Gives the verbose table of contents for an archive stored in .Pa filename . .Pp .Li $ mkdir newdir ; .Li cd olddir ; -.Li pax -rw \&. newdir +.Li +.Nm +-rw \&. newdir .Pp This sequence of commands will copy the entire .Pa olddir directory hierarchy to .Pa newdir . .Pp -.Li $ pax -r -s ',^//*usr//*,,' -f a.pax +.Li $ +.Nm +-r -s ',^//*usr//*,,' -f a.pax .Pp Reads the archive .Pa a.pax , @@ -1108,13 +1116,17 @@ with all files rooted in .Pa /usr into the archive extracted relative to the current directory. .Pp -.Li $ pax -rw -i \&. dest_dir +.Li $ +.Nm +-rw -i \&. dest_dir .Pp Can be used to interactively select the files to copy from the current directory to .Pa dest_dir . .Pp -.Li $ pax -r -pe -U root -G bin -f a.pax +.Li $ +.Nm +-r -pe -U root -G bin -f a.pax .Pp Extract all files from the archive .Pa a.pax @@ -1124,7 +1136,9 @@ with group .Em bin and preserve all file permissions. .Pp -.Li "$ pax -r -w -v -Y -Z home /backup" +.Li "$ +.Nm +-r -w -v -Y -Z home /backup" .Pp Update (and list) only those files in the destination directory .Pa /backup @@ -1177,8 +1191,13 @@ and when .Nm completes it will exit with a non-zero exit status. .Sh SEE ALSO +.Xr spax 1 , +.Xr tar 1 , +.Xr bsdtar 1 , +.Xr star 1 , .Xr cpio 1 , -.Xr tar 1 +.Xr bsdcpio 1 , +.Xr scpio 1 .Sh STANDARDS The .Nm