2007/09/06
Tarfs に関する古いメモ(2005/01/14)が公開されないままに残っていた。
term% fs/tarfs pegasus-2.1.tar term% ls -l /n/tapefs d-rwxrwxr-x M 35 0 0 0 Oct 3 2003 /n/tapefs/pegasus-2.1 term% ls -l /n/tapefs/pegasus-2.1 --rw-rw-r-- M 35 0 0 125 Oct 3 2003 /n/tapefs/pegasus-2.1/CHANGES --rw-rw-r-- M 35 0 0 2981 Feb 4 2003 /n/tapefs/pegasus-2.1/MEMO --rw-rw-r-- M 35 0 0 717 Feb 4 2003 /n/tapefs/pegasus-2.1/README --rw-rw-r-- M 35 0 0 4086 Feb 4 2003 /n/tapefs/pegasus-2.1/TODO d-rwxrwxr-x M 35 0 0 0 Nov 4 2003 /n/tapefs/pegasus-2.1/cgitools d-rwxrwxr-x M 35 0 0 0 Feb 4 2003 /n/tapefs/pegasus-2.1/example d-rwxrwxr-x M 35 0 0 0 Sep 12 01:26 /n/tapefs/pegasus-2.1/httpd --rw-rw-r-- M 35 0 0 326 Feb 4 2003 /n/tapefs/pegasus-2.1/list d-rwxrwxr-x M 35 0 0 0 Oct 27 02:50 /n/tapefs/pegasus-2.1/mon term%
-bash$ tar --help GNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. Usage: tar [OPTION]... [FILE]... Examples: tar -cf archive.tar foo bar # Create archive.tar from files foo and bar. tar -tvf archive.tar # List all files in archive.tar verbosely. tar -xf archive.tar # Extract all files from archive.tar. If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for optional arguments. Main operation mode: -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system -r, --append append files to the end of an archive -u, --update only append files newer than copy in archive -A, --catenate append tar files to an archive --concatenate same as -A --delete delete from the archive (not on mag tapes!) Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't replace existing files when extracting --overwrite overwrite existing files when extracting --overwrite-dir overwrite directory metadata when extracting [以下省略]
term% tar -! tar: !: unknown option tar: usage tar {txrc}[Rvf] [tarfile] file1 file2... term%