|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
Softpanorama Search
|
| News | Books | See also | Recommended Links | Reference | Tips | |
| star | gnu tar | gzip | find tutorial | History | Humor | Etc |
pax which stands for portable archive interchange. The pax command provides better portability than the tar or cpio commands for POSIX-compliant systems. Use the pax command to copy files, special files, or file systems that require multiple tape volumes or when you want to copy files to and from POSIX-compliant systems. Disadvantages of the pax command are that it is not aware of file system boundaries and the full path name length cannot exceed 255 characters.
Follow these steps to use the pax command to copy all the files in the current directory to a tape:
In this example, all files are copied from the tape in drive 0:
castle% pax -w -f /dev/rmt/0 . castle% pax -l -f /dev/rmt/0 . ./addusr-1.rs ./addusr-2.rs ./at-addmn.rs ./at-base.rs ./at-menu.rs castle%
See the pax(1) manual page for more information.
NOTE: When you use the pax command to copy files to a single-volume tape, you can also list and retrieve files from that tape by using the tar command.
Follow these steps to use the pax command to copy all the files on a tape into the current directory:
In this example, all files are copied from the tape in drive 0:
% pax -r -f /dev/rmt/0 . pax: . :not owner castle% ls -l -rw-rw-rw- 1 winsor staff 245660 Sep 12 11:52 addusr-1.rs -rw-rw-rw- 1 winsor staff 245660 Sep 12 10:31 addusr-2.rs -rw-rw-rw- 1 winsor staff 181315 Sep 12 10:29 at-addmn.rs -rw-rw-rw- 1 winsor staff 181309 Sep 12 10:27 at-base.rs -rw-rw-rw- 1 winsor staff 181315 Sep 12 10:28 at-menu.rs castle%
Copyright © 1996-2009 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Disclaimer:
Last modified: August 08, 2009