PAX(1) General Commands Manual PAX(1) (NAME) pax - (SYNOPSIS) pax [-0cdJjnOvz] [-E limit] [-f archive] [-G group] [-s replstr] [-T range] [-U user] [pattern ...] pax -r [-0cDdiJjknOuvYZz] [-E limit] [-f archive] [-G group] [-M flag] [-o options] [-p string] [-s replstr] [-T range] [-U user] [pattern ...] pax -w [-0adHiJjLOPtuvXz] [-B bytes] [-b blocksize] [-f archive] [-G group] [-M flag] [-o options] [-s replstr] [-T range] [-U user] [-x format] [file ...] pax -rw [-0DdHiJjkLlnOPtuvXYZ] [-G group] [-p string] [-s replstr] [-T range] [-U user] [file ...] directory (DESCRIPTION) pax . pax . -x . -r -w pax : list () read () write () copy (). List. pax pattern . . -r Read. pax pattern . . . . -p . -w Write. pax file . file . file . -rw Copy. pax file directory . file . file . copy ( -l ). : directory file file . copy . pax ( -E ). directory . directory pax . pattern . glob(7) . pattern . pattern . pattern pax pattern . file . file pax file . : -0 NUL (`\0') (`\n'). . -print0 find(1) -d file ... read mksh(1) -0 xargs(1) . -a file . -x . pax . . : . . . . -B bytes bytes. bytes `m ' `k' `b' (1M) (1K) . bytes `x' . : (end of file) ( ) ( ). . -b blocksize . blocksize . POSIX . blocksize `k' `b' (1K) . blocksize `x' . . blocksize ( -x ). -c pattern file. -D -u . ( UID GID ) directory . -d . -E limit limit. limit pax . limit pax . limit . -f archive archive ( ) ( ) . . pax . -G group group # GID . `\' (escape) # . -G . -H . -i . pattern file pax /dev/tty . pax /dev/tty . . . . EOF /dev/tty pax . -J xz ( ) (). -a. -j bzip2 ( ) (). -a. -k . -L . -l ( "ell".) . (-r -w -) . -M flag . flag strtonum(3) "no-" : inodes 0x0001: . (cpio, sv4cpio, sv4crc) links 0x0002: . (cpio, sv4cpio, sv4crc) mtime 0x0004: . (ar, cpio, sv4cpio, sv4crc, ustar) uidgid 0x0008: 0:0 (root:wheel). (ar, cpio, sv4cpio, sv4crc, ustar) verb 0x0010: . debug 0x0020: . lncp 0x0040: . numid 0x0080: uid gid. (ustar) gslash 0x0100: . (ustar) set 0x0003: mtime. dist 0x008B: mtime. norm 0x008F: . root 0x0089: . . ar cpio sv4cpio sv4crc ustar . TODO: pax -o . -n pattern . pattern . ( -d ). -O . pax . . -o options -x . options : name=value. ustar BSD tar : write_opt=nodir . -P . . -p string (). string . a e m o p . -p . : a . . e " " . . e o p . m . . o . p " ". . . `' . . e o pax S_ISUID (setuid) S_ISGID (setgid) . pax . . . -p eme . -r file . mkdir(2) OR S_IRWXU S_IRWXG S_IRWXO (mode) . pax . -s replstr replstr ed(1). file pattern . : /old/new/[gp] ed(1) old ( re_format(7)) new (`& ') `\n' ( n ) . old . ( `/' ). -s . . g . g . p : original-pathname >> new-pathname . -T range . : [from_date][,to_date][/[c][m]] from_date to_date . from_date . to_date . from_date to_date . pax [c][m] ( ) . . m ( ) . c ( ) . c m . ( ). pax ( ). . : [[[[[cc]yy]mm]dd]HH]MM[.SS] cc () yy mm ( 01 12) dd ( 01 31) HH ( 00 23) MM ( 00 59) SS ( 00 59) . MM : HH dd mm yy cc. SS . -T 1234/cm : . -T . -t pax pax . -U user user # UID . `\' # . -U . -u ( ) . . . . -v ls(1) -l . : ls -l listing == link-name : ls -l listing -> link-name ls -l listing ls(1) -l . ( ) (flush) . . -w . file . -X (device ID) . st_dev stat(2) . -x format ustar . pax : ar (Unix Archiver). APT ar(1) BSD GNU binutils ( ) SYSV. ar(5) . bcpio cpio. . . ( ) (truncate) pax . cpio cpio IEEE Std 1003.2 ("POSIX.2"). . ( ) pax . sv4cpio cpio System V . . ( ) pax . sv4crc cpio System V (checksum) CRC . . ( ) pax . tar BSD tar 4.3BSD . . . ( ). tar -o . : -o write_opt=nodir ustar tar IEEE Std 1003.2 ("POSIX.2"). . . pax . . ( ): . -Y -D . -Z -u . -z gzip(1) ( ) (). -a. (-c - -i - -n - -s - -u - -v - -D - -G - -T - -U - -Y -Z) : -c - -n - -u - -D - -G - -T - -U `' . -s -i . -Y -Z . -v . -n - -u - -D - -G - -T -U `' ( -D ). -s -i . -Y -Z . -v . -u -D -n . (ENVIRONMENT) TMPDIR . (EXIT STATUS) The pax utility exits 0 on success, and >0 if an error occurs. (EXAMPLES) /dev/rst0: $ pax -w -f /dev/rst0 . filename: $ pax -v -f filename olddir newdir : $ mkdir newdir $ cd olddir $ pax -rw . ../newdir a.pax. /usr . $ pax -r -s ,^/usr/,, -f a.pax dest_dir : $ pax -rw -i . dest_dir a.pax root bin : $ pax -r -pe -U root -G bin -f a.pax ( ) /backup ( ) home: $ pax -r -w -v -Y -Z home /backup (DIAGNOSTICS) pax -p . pax -M lncp pax . pax . . pax . pax pax . (SEE ALSO) ar(1), cpio(1), deb(5), paxcpio(1), paxtar(1), tar(1) (STANDARDS) pax IEEE Std 1003.1 ("POSIX") (BUGS) pax listopt . -0BDEGHJjLMOPTUYZz - ar bcpio sv4cpio sv4crc tar b k x -b . (HISTORY) pax 4.4BSD . (AUTHORS) Keith Muller . MirBSD mirabilos . (BUGS) POSIX . (STANDARDS) . MirBSD $Mdocdate: January 5 MirBSD