diff options
Diffstat (limited to 'bin/pax/pax.1')
-rw-r--r-- | bin/pax/pax.1 | 53 |
1 files changed, 26 insertions, 27 deletions
diff --git a/bin/pax/pax.1 b/bin/pax/pax.1 index 473110b83d4..fb7f4932989 100644 --- a/bin/pax/pax.1 +++ b/bin/pax/pax.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pax.1,v 1.20 2000/04/15 02:15:10 aaron Exp $ +.\" $OpenBSD: pax.1,v 1.21 2000/10/18 06:55:09 aaron Exp $ .\" $NetBSD: pax.1,v 1.3 1995/03/21 09:07:37 cgd Exp $ .\" .\" Copyright (c) 1992 Keith Muller. @@ -1047,53 +1047,52 @@ options are specified along with the option, a file is not considered selected unless it is newer than the file to which it is compared. .Sh EXAMPLES -The command: -.Dl pax -w -f /dev/rst0 .\ -copies the contents of the current directory to the device +.Cm pax -w -f /dev/rst0 .\ +.Pp +Copies the contents of the current directory to the device .Pa /dev/rst0 . .Pp -The command: -.Dl pax -v -f filename -gives the verbose table of contents for an archive stored in +.Cm pax -v -f filename +.Pp +Gives the verbose table of contents for an archive stored in .Pa filename . .Pp -The following commands: -.Dl mkdir newdir -.Dl cd olddir -.Dl pax -rw .\ newdir -will copy the entire +.Cm mkdir newdir +.Cm cd olddir +.Cm pax -rw .\ newdir +.Pp +This sequence of commands will copy the entire .Pa olddir directory hierarchy to .Pa newdir . .Pp -The command: -.Dl pax -r -s ',^//*usr//*,,' -f a.pax -reads the archive +.Cm pax -r -s ',^//*usr//*,,' -f a.pax +.Pp +Reads the archive .Pa a.pax , with all files rooted in .Pa /usr -into the archive extracted relative to the -current directory. +into the archive extracted relative to the current directory. .Pp -The command: -.Dl pax -rw -i .\ dest_dir -can be used to interactively select the files to copy from the current +.Cm pax -rw -i .\ dest_dir +.Pp +Can be used to interactively select the files to copy from the current directory to .Pa dest_dir . .Pp -The command: -.Dl pax -r -pe -U root -G bin -f a.pax -will extract all files from the archive +.Cm pax -r -pe -U root -G bin -f a.pax +.Pp +Extract all files from the archive .Pa a.pax which are owned by .Em root with group .Em bin -and will preserve all file permissions. +and preserve all file permissions. +.Pp +.Cm "pax -r -w -v -Y -Z home /backup" .Pp -The command: -.Dl pax -r -w -v -Y -Z home /backup -will update (and list) only those files in the destination directory +Update (and list) only those files in the destination directory .Pa /backup which are older (less recent inode change or file modification times) than files with the same name found in the source file tree |