1 .\" $Id: tar.1,v 1.2 89/02/12 10:08:55 mark Exp $
2 .TH TAR 1 "USENIX Association" ""
4 tar \- process tape archives
33 reads and writes archive files which conform to the
34 .B "Archive/Interchange File Format"
36 .IR "IEEE Std. 1003.1-1988" .
38 The following options are available:
41 Creates a new archive; writing begins at the beginning of the archive,
42 instead of after the last file.
45 Writes names files to the end of the archive.
48 Lists the names of all of the files in the archive.
51 Causes named files to be
52 added to the archive if they are not already there, or have been
53 modified since last written into the archive.
61 If a named file matches a directory whose contents had been written onto
62 the archive, that directory is recursively extracted.
63 If a named file in the archive does not exist on the system, the file is
64 create with the same mode as the one in the archive, except that the
65 set-user-id and get-group-id modes are not set unless the user has
66 appropriate privileges.
68 If the files exist, their modes are not changed except as described above.
69 The owner, group and modification time are restored if possible.
72 argument is given, the entire contents of the archive is extracted.
73 Note that if several files with the same name are in the archive,
74 the last one will overwrite all earlier ones.
79 to use the next argument on the command line as the blocking factor for
81 The default is 1; the maximum is 20.
82 This option should only be used with raw magnetic tape archives.
83 Normally, the block size is determined automatically when reading tapes.
88 to use the next argument on the command line as the name of the archive
89 instead of the default, which is usually a tape drive.
92 is specified as a filename
94 writes to the standard output or reads from the standard input, whichever
95 is appropriate for the options given.
98 can be used as the head or tail of a pipeline.
103 to report if it cannot resolve all of the links to the files being
107 is not specified, no error messages are written to the standard output.
108 This modifier is only valid with the
118 not to restore the modification times.
119 The modification time of the file will be the time of extraction.
120 This modifier is invalid with th
125 Causes extracted files to take on the user and group identifier of the user
126 running the program rather than those on the archive.
127 This modifier is only valid with the
134 to operate verbosely. Usually,
136 does its work silently, but
139 modifier causes it to print the name of each file it processes,
140 preceded by the option letter.
145 gives more information about the archive entries than just the name.
150 to print the action to be taken, followed by the name of the file, and then
151 wait for the user's confirmation.
152 If a word beginning with
154 is given, the action is performed.
155 Any other input means "no".
156 This modifier is invalid with the
162 used to prompt the user for information when the
164 options are specified.
166 cpio(1), dd(1), find(1), pax(1), cpio(5), tar(5)
168 Copyright (c) 1989 Mark H. Colburn.
172 Redistribution and use in source and binary forms are permitted
173 provided that the above copyright notice is duplicated in all such
174 forms and that any documentation, advertising materials, and other
175 materials related to such distribution and use acknowledge that the
176 software was developed by Mark H. Colburn and sponsored by The
179 THE SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
180 IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
181 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
187 117 Mackubin Street, Suite 1
194 .B "The USENIX Association"
195 for public distribution.