ad6302db9d681e5823a3059516d0f96f907ef29f
[dragonfly.git] / contrib / bsdtar / bsdtar.1
1 .\" Copyright (c) 2003 Tim Kientzle
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD: src/usr.bin/tar/bsdtar.1,v 1.28 2005/04/19 16:06:04 murray Exp $
26 .\"
27 .Dd April 13, 2004
28 .Dt BSDTAR 1
29 .Os
30 .Sh NAME
31 .Nm tar
32 .Nd manipulate tape archives
33 .Sh SYNOPSIS
34 .Nm
35 .Op Ar bundled-flags Ao args Ac
36 .Op Ao Ar file Ac | Ao Ar pattern Ac ...
37 .Nm
38 .Brq Fl c
39 .Op Ar options
40 .Op Ar files | directories
41 .Nm
42 .Brq Fl r | Fl u
43 .Fl f Ar archive-file
44 .Op Ar options
45 .Op Ar files | directories
46 .Nm
47 .Brq Fl t | Fl x
48 .Op Ar options
49 .Op Ar patterns
50 .Sh DESCRIPTION
51 .Nm
52 creates and manipulates streaming archive files.
53 .Pp
54 The first synopsis form shows a
55 .Dq bundled
56 option word.
57 This usage is provided for compatibility with historical implementations.
58 See COMPATIBILITY below for details.
59 .Pp
60 The other synopsis forms show the preferred usage.
61 The first option to
62 .Nm
63 is a mode indicator from the following list:
64 .Bl -tag -compact -width indent
65 .It Fl c
66 Create a new archive containing the specified items.
67 .It Fl r
68 Like
69 .Fl c ,
70 but new entries are appended to the archive.
71 Note that this only works on uncompressed archives stored in regular files.
72 The
73 .Fl f
74 option is required.
75 .It Fl t
76 List archive contents to stdout.
77 .It Fl u
78 Like
79 .Fl r ,
80 but new entries are added only if they have a modification date
81 newer than the corresponding entry in the archive.
82 Note that this only works on uncompressed archives stored in regular files.
83 The
84 .Fl f
85 option is required.
86 .It Fl x
87 Extract to disk from the archive.
88 If a file with the same name appears more than once in the archive,
89 each copy will be extracted, with later copies overwriting (replacing)
90 earlier copies.
91 .El
92 .Pp
93 In
94 .Fl c ,
95 .Fl r ,
96 or
97 .Fl u
98 mode, each specified file or directory is added to the
99 archive in the order specified on the command line.
100 By default, the contents of each directory are also archived.
101 .Pp
102 In extract or list mode, the entire command line
103 is read and parsed before the archive is opened.
104 The pathnames or patterns on the command line indicate
105 which items in the archive should be processed.
106 Patterns are shell-style globbing patterns as
107 documented in
108 .Xr tcsh 1 .
109 .Sh OPTIONS
110 Unless specifically stated otherwise, options are applicable in
111 all operating modes.
112 .Bl -tag -width indent
113 .It Cm @ Ns Pa archive
114 (c and r mode only)
115 The specified archive is opened and the entries
116 in it will be appended to the current archive.
117 As a simple example,
118 .Dl Nm Fl c Fl f Pa - Pa newfile Cm @ Ns Pa original.tar
119 writes a new archive to standard output containing a file
120 .Pa newfile
121 and all of the entries from
122 .Pa original.tar .
123 In contrast,
124 .Dl Nm Fl c Fl f Pa - Pa newfile Pa original.tar
125 creates a new archive with only two entries.
126 Similarly,
127 .Dl Nm Fl czf Pa - Fl -format Cm pax Cm @ Ns Pa -
128 reads an archive from standard input (whose format will be determined
129 automatically) and converts it into a gzip-compressed
130 pax-format archive on stdout.
131 In this way,
132 .Nm
133 can be used to convert archives from one format to another.
134 .It Fl b Ar blocksize
135 Specify the block size, in 512-byte records, for tape drive I/O.
136 As a rule, this argument is only needed when reading from or writing
137 to tape drives, and usually not even then as the default block size of
138 20 records (10240 bytes) is very common.
139 .It Fl C Ar directory
140 In c and r mode, this changes the directory before adding
141 the following files.
142 In x mode, change directories after opening the archive
143 but before extracting entries from the archive.
144 .It Fl -check-links ( Fl W Cm check-links )
145 (c and r modes only)
146 Issue a warning message unless all links to each file are archived.
147 .It Fl -exclude Ar pattern ( Fl W Cm exclude Ns = Ns Ar pattern )
148 Do not process files or directories that match the
149 specified pattern.
150 Note that exclusions take precedence over patterns or filenames
151 specified on the command line.
152 .It Fl -format Ar format ( Fl W Cm format Ns = Ns Ar format )
153 (c mode only)
154 Use the specified format for the created archive.
155 Supported formats include
156 .Dq cpio ,
157 .Dq pax ,
158 .Dq shar ,
159 and
160 .Dq ustar .
161 Other formats may also be supported; see
162 .Xr libarchive-formats 5
163 for more information about currently-supported formats.
164 .It Fl f Ar file
165 Read the archive from or write the archive to the specified file.
166 The filename can be
167 .Pa -
168 for standard input or standard output.
169 If not specified, the default tape device will be used.
170 (On FreeBSD, the default tape device is
171 .Pa /dev/sa0 . )
172 .It Fl -fast-read ( Fl W Cm fast-read )
173 (x and t mode only)
174 Extract or list only the first archive entry that matches each pattern
175 or filename operand.
176 Exit as soon as each specified pattern or filename has been matched.
177 By default, the archive is always read to the very end, since
178 there can be multiple entries with the same name and, by convention,
179 later entries overwrite earlier entries.
180 This option is provided as a performance optimization.
181 .It Fl H
182 (c and r mode only)
183 Symbolic links named on the command line will be followed; the
184 target of the link will be archived, not the link itself.
185 .It Fl h
186 (c and r mode only)
187 Synonym for
188 .Fl L .
189 .It Fl I
190 Synonym for
191 .Fl T .
192 .It Fl -include Ar pattern ( Fl W Cm include Ns = Ns Ar pattern )
193 Process only files or directories that match the specified pattern.
194 Note that exclusions specified with
195 .Fl -exclude
196 take precedence over inclusions.
197 If no inclusions are explicitly specified, all entries are processed by
198 default.
199 The
200 .Fl -include
201 option is especially useful when filtering archives.
202 For example, the command
203 .Dl Nm Fl c Fl f Pa new.tar Fl -include='*foo*' Cm @ Ns Pa old.tgz
204 creates a new archive
205 .Pa new.tar
206 containing only the entries from
207 .Pa old.tgz
208 containing the string
209 .Sq foo .
210 .It Fl j
211 (c mode only)
212 Compress the resulting archive with
213 .Xr bzip2 1 .
214 In extract or list modes, this option is ignored.
215 Note that, unlike other
216 .Nm tar
217 implementations, this implementation recognizes bzip2 compression
218 automatically when reading archives.
219 .It Fl k
220 (x mode only)
221 Do not overwrite existing files.
222 In particular, if a file appears more than once in an archive,
223 later copies will not overwrite earlier copies.
224 .It Fl L
225 (c and r mode only)
226 All symbolic links will be followed.
227 Normally, symbolic links are archived as such.
228 With this option, the target of the link will be archived instead.
229 .It Fl l
230 If
231 .Ev POSIXLY_CORRECT
232 is specified in the environment, this is a synonym for the
233 .Fl -check-links
234 option.
235 Otherwise, an error will be displayed.
236 Users who desire behavior compatible with GNU tar should use
237 the
238 .Fl -one-file-system
239 option instead.
240 .It Fl m
241 (x mode only)
242 Do not extract modification time.
243 By default, the modification time is set to the time stored in the archive.
244 .It Fl n
245 (c, r, u modes only)
246 Do not recursively archive the contents of directories.
247 .It Fl -newer Ar date ( Fl W Cm newer Ns = Ns Ar date )
248 (c, r, u modes only)
249 Only include files and directories newer than the specified date.
250 This compares ctime entries.
251 .It Fl -newer-mtime Ar date ( Fl W Cm newer-mtime Ns = Ns Ar date )
252 (c, r, u modes only)
253 Like
254 .Fl -newer ,
255 except it compares mtime entries instead of ctime entries.
256 .It Fl -newer-than Pa file ( Fl W Cm newer-than Ns = Ns Pa file )
257 (c, r, u modes only)
258 Only include files and directories newer than the specified file.
259 This compares ctime entries.
260 .It Fl -newer-mtime-than Pa file ( Fl W Cm newer-mtime-than Ns = Ns Pa file )
261 (c, r, u modes only)
262 Like
263 .Fl -newer-than ,
264 except it compares mtime entries instead of ctime entries.
265 .It Fl -nodump ( Fl W Cm nodump )
266 (c and r modes only)
267 Honor the nodump file flag by skipping this file.
268 .It Fl -null ( Fl W Cm null )
269 (use with
270 .Fl I ,
271 .Fl T ,
272 or
273 .Fl X )
274 Filenames or patterns are separated by null characters,
275 not by newlines.
276 This is often used to read filenames output by the
277 .Fl print0
278 option to
279 .Xr find 1 .
280 .It Fl O
281 (x, t modes only)
282 In extract (-x) mode, files will be written to standard out rather than
283 being extracted to disk.
284 In list (-t) mode, the file listing will be written to stderr rather than
285 the usual stdout.
286 .It Fl o
287 (x mode only)
288 Use the user and group of the user running the program rather
289 than those specified in the archive.
290 Note that this has no significance unless
291 .Fl p
292 is specified, and the program is being run by the root user.
293 In this case, the file modes and flags from
294 the archive will be restored, but ACLs or owner information in
295 the archive will be discarded.
296 .It Fl -one-file-system ( Fl W Cm one-file-system )
297 (c, r, and u modes)
298 Do not cross mount points.
299 .It Fl P
300 Preserve pathnames.
301 By default, absolute pathnames (those that begin with a /
302 character) have the leading slash removed both when creating archives
303 and extracting from them.
304 Also,
305 .Nm
306 will refuse to extract archive entries whose pathnames contain
307 .Pa ..
308 or whose target directory would be altered by a symlink.
309 This option suppresses these behaviors.
310 .It Fl p
311 (x mode only)
312 Preserve file permissions.
313 Attempt to restore the full permissions, including owner, file modes, file
314 flags and ACLs, if available, for each item extracted from the archive.
315 By default, newly-created files are owned by the user running
316 .Nm ,
317 the file mode is restored for newly-created regular files, and
318 all other types of entries receive default permissions.
319 If
320 .Nm
321 is being run by root, the default is to restore the owner unless the
322 .Fl o
323 option is also specified.
324 .It Fl -strip-components Ar count ( Fl W Cm strip-components Ns = Ns Ar count )
325 (x and t mode only)
326 Remove the specified number of leading path elements.
327 Pathnames with fewer elements will be silently skipped.
328 Note that the pathname is edited after checking inclusion/exclusion patterns
329 but before security checks.
330 .It Fl T Ar filename
331 In x or t mode,
332 .Nm
333 will read the list of names to be extracted from
334 .Pa filename .
335 In c mode,
336 .Nm
337 will read names to be archived from
338 .Pa filename .
339 The special name
340 .Dq -C
341 on a line by itself will cause the current directory to be changed to
342 the directory specified on the following line.
343 Names are terminated by newlines unless
344 .Fl -null
345 is specified.
346 Note that
347 .Fl -null
348 also disables the special handling of lines containing
349 .Dq -C .
350 .It Fl U
351 (x mode only)
352 Unlink files before creating them.
353 Without this option,
354 .Nm
355 overwrites existing files, which preserves existing hardlinks.
356 With this option, existing hardlinks will be broken, as will any
357 symlink that would affect the location of an extracted file.
358 .It Fl v
359 Produce verbose output.
360 In create and extract modes,
361 .Nm
362 will list each file name as it is read from or written to
363 the archive.
364 In list mode,
365 .Nm
366 will produce output similar to that of
367 .Xr ls 1 .
368 Additional
369 .Fl v
370 options will provide additional detail.
371 .It Fl W Ar longopt=value
372 Long options (preceded by
373 .Fl - )
374 are only supported directly on systems that have the
375 .Xr getopt_long 3
376 function.
377 The
378 .Fl W
379 option can be used to access long options on systems that
380 do not support this function.
381 .It Fl w
382 Ask for confirmation for every action.
383 .It Fl X Ar filename
384 Read a list of exclusion patterns from the specified file.
385 See
386 .Fl -exclude
387 for more information about the handling of exclusions.
388 .It Fl y
389 (c mode only)
390 Compress the resulting archive with
391 .Xr bzip2 1 .
392 In extract or list modes, this option is ignored.
393 Note that, unlike other
394 .Nm tar
395 implementations, this implementation recognizes bzip2 compression
396 automatically when reading archives.
397 .It Fl z
398 (c mode only)
399 Compress the resulting archive with
400 .Xr gzip 1 .
401 In extract or list modes, this option is ignored.
402 Note that, unlike other
403 .Nm tar
404 implementations, this implementation recognizes gzip compression
405 automatically when reading archives.
406 .El
407 .Sh ENVIRONMENT
408 The following environment variables affect the execution of
409 .Nm :
410 .Bl -tag -width ".Ev BLOCKSIZE"
411 .It Ev LANG
412 The locale to use.
413 See
414 .Xr environ 7
415 for more information.
416 .It Ev POSIXLY_CORRECT
417 If this environment variable is defined, the
418 .Fl l
419 option will be interpreted in accordance with
420 .St -p1003.1-96 .
421 .It Ev TAPE
422 The default tape device.
423 The
424 .Fl f
425 option overrides this.
426 .It Ev TZ
427 The timezone to use when displaying dates.
428 See
429 .Xr environ 7
430 for more information.
431 .El
432 .Sh FILES
433 .Bl -tag -width ".Ev BLOCKSIZE"
434 .It Pa /dev/sa0
435 The default tape device, if not overridden by the
436 .Ev TAPE
437 environment variable or the
438 .Fl f
439 option.
440 .El
441 .Sh EXIT STATUS
442 .Ex -std
443 .Sh EXAMPLES
444 The following creates a new archive
445 called
446 .Ar file.tar
447 that contains two files
448 .Ar source.c
449 and
450 .Ar source.h :
451 .Dl Nm Fl czf Pa file.tar Pa source.c Pa source.h
452 .Pp
453 To view a detailed table of contents for this
454 archive:
455 .Dl Nm Fl tvf Pa file.tar
456 .Pp
457 To extract all entries from the archive on
458 the default tape drive:
459 .Dl Nm Fl x
460 .Pp
461 To move file hierarchies, invoke
462 .Nm
463 as
464 .Dl Nm Fl cf Pa - Fl C Pa srcdir\ . | Nm Fl xpBf Pa - Fl C Pa destdir
465 or more traditionally
466 .Dl cd srcdir \; Nm Fl cf Pa -\ . | ( cd destdir \; Nm Fl xpBf Pa - )
467 .Pp
468 In create mode, the list of files and directories to be archived
469 can also include directory change instructions of the form
470 .Cm -C Ns Pa foo/baz
471 and archive inclusions of the form
472 .Cm @ Ns Pa archive-file .
473 For example, the command line
474 .Dl Nm Fl c Fl f Pa new.tar Pa foo1 Cm @ Ns Pa old.tgz Cm -C Ns Pa /tmp Pa foo2
475 will create a new archive
476 .Pa new.tar .
477 .Nm
478 will read the file
479 .Pa foo1
480 from the current directory and add it to the output archive.
481 It will then read each entry from
482 .Pa old.tgz
483 and add those entries to the output archive.
484 Finally, it will switch to the
485 .Pa /tmp
486 directory and add
487 .Pa foo2
488 to the output archive.
489 .Pp
490 The
491 .Fl -newer
492 and
493 .Fl -newer-mtime
494 switches accept a variety of common date and time specifications, including
495 .Dq 12 Mar 2005 7:14:29pm ,
496 .Dq 2005-03-12 19:14 ,
497 .Dq 5 minutes ago ,
498 and
499 .Dq 19:14 PST May 1 .
500 .Sh COMPATIBILITY
501 The bundled-arguments format is supported for compatibility
502 with historic implementations.
503 It consists of an initial word (with no leading - character) in which
504 each character indicates an option.
505 Arguments follow as separate words.
506 The order of the arguments must match the order
507 of the corresponding characters in the bundled command word.
508 For example,
509 .Dl Nm Cm tbf 32 Pa file.tar
510 specifies three flags
511 .Cm t ,
512 .Cm b ,
513 and
514 .Cm f .
515 The
516 .Cm b
517 and
518 .Cm f
519 flags both require arguments,
520 so there must be two additional items
521 on the command line.
522 The
523 .Ar 32
524 is the argument to the
525 .Cm b
526 flag, and
527 .Ar file.tar
528 is the argument to the
529 .Cm f
530 flag.
531 .Pp
532 The mode options c, r, t, u, and x and the options
533 b, f, l, m, o, v, and w comply with SUSv2.
534 .Pp
535 For maximum portability, scripts that invoke
536 .Nm tar
537 should use the bundled-argument format above, should limit
538 themselves to the
539 .Cm c ,
540 .Cm t ,
541 and
542 .Cm x
543 modes, and the
544 .Cm b ,
545 .Cm f ,
546 .Cm m ,
547 .Cm v ,
548 and
549 .Cm w
550 options.
551 .Pp
552 On systems that support getopt_long(), additional long options
553 are available to improve compatibility with other tar implementations.
554 .Sh SECURITY
555 Certain security issues are common to many archiving programs, including
556 .Nm .
557 In particular, carefully-crafted archives can request that
558 .Nm
559 extract files to locations outside of the target directory.
560 This can potentially be used to cause unwitting users to overwrite
561 files they did not intend to overwrite.
562 If the archive is being extracted by the superuser, any file
563 on the system can potentially be overwritten.
564 There are three ways this can happen.
565 Although
566 .Nm
567 has mechanisms to protect against each one,
568 savvy users should be aware of the implications:
569 .Bl -bullet -width indent
570 .It
571 Archive entries can have absolute pathnames.
572 By default,
573 .Nm
574 removes the leading
575 .Pa /
576 character from filenames before restoring them to guard against this problem.
577 .It
578 Archive entries can have pathnames that include
579 .Pa ..
580 components.
581 By default,
582 .Nm
583 will not extract files containing
584 .Pa ..
585 components in their pathname.
586 .It
587 Archive entries can exploit symbolic links to restore
588 files to other directories.
589 An archive can restore a symbolic link to another directory,
590 then use that link to restore a file into that directory.
591 To guard against this,
592 .Nm
593 checks each extracted path for symlinks.
594 If the final path element is a symlink, it will be removed
595 and replaced with the archive entry.
596 If
597 .Fl U
598 is specified, any intermediate symlink will also be unconditionally removed.
599 If neither
600 .Fl U
601 nor
602 .Fl P
603 is specified,
604 .Nm
605 will refuse to extract the entry.
606 .El
607 To protect yourself, you should be wary of any archives that
608 come from untrusted sources.
609 You should examine the contents of an archive with
610 .Dl Nm Fl tf Pa filename
611 before extraction.
612 You should use the
613 .Fl k
614 option to ensure that
615 .Nm
616 will not overwrite any existing files or the
617 .Fl U
618 option to remove any pre-existing files.
619 You should generally not extract archives while running with super-user
620 privileges.
621 Note that the
622 .Fl P
623 option to
624 .Nm
625 disables the security checks above and allows you to extract
626 an archive while preserving any absolute pathnames,
627 .Pa ..
628 components, or symlinks to other directories.
629 .Sh SEE ALSO
630 .Xr bzip2 1 ,
631 .Xr cpio 1 ,
632 .Xr gzip 1 ,
633 .Xr mt 1 ,
634 .Xr pax 1 ,
635 .Xr shar 1 ,
636 .Xr libarchive 3 ,
637 .Xr libarchive-formats 5 ,
638 .Xr tar 5
639 .Sh STANDARDS
640 There is no current POSIX standard for the tar command; it appeared
641 in
642 .St -p1003.1-96
643 but was dropped from
644 .St -p1003.1-2001 .
645 The options used by this implementation were developed by surveying a
646 number of existing tar implementations as well as the old POSIX specification
647 for tar and the current POSIX specification for pax.
648 .Pp
649 The ustar and pax interchange file formats are defined by
650 .St -p1003.1-2001
651 for the pax command.
652 .Sh HISTORY
653 A
654 .Nm tar
655 command appeared in Seventh Edition Unix.
656 There have been numerous other implementations,
657 many of which extended the file format.
658 John Gilmore's
659 .Nm pdtar
660 public-domain implementation (circa November, 1987)
661 was quite influential, and formed the basis of GNU tar.
662 GNU tar was included as the standard system tar
663 in FreeBSD beginning with FreeBSD 1.0.
664 .Pp
665 This is a complete re-implementation based on the
666 .Xr libarchive 3
667 library.
668 .Sh BUGS
669 POSIX and GNU violently disagree about the meaning of the
670 .Fl l
671 option.
672 Because of the potential for disaster if someone expects
673 one behavior and gets the other, the
674 .Fl l
675 option is deliberately broken in this implementation.
676 .Pp
677 The
678 .Fl C Pa dir
679 option may differ from historic implementations.
680 .Pp
681 All archive output is written in correctly-sized blocks, even
682 if the output is being compressed.
683 Whether or not the last output block is padded to a full
684 block size varies depending on the format and the
685 output device.
686 For tar and cpio formats, the last block of output is padded
687 to a full block size if the output is being
688 written to standard output or to a character or block device such as
689 a tape drive.
690 If the output is being written to a regular file, the last block
691 will not be padded.
692 Many compressors, including
693 .Xr gzip 1
694 and
695 .Xr bzip2 1 ,
696 complain about the null padding when decompressing an archive created by
697 .Nm ,
698 although they still extract it correctly.
699 .Pp
700 The compression and decompression is implemented internally, so
701 there may be insignificant differences between the compressed output
702 generated by
703 .Dl Nm Fl czf Pa - file
704 and that generated by
705 .Dl Nm Fl cf Pa - file | Nm gzip
706 .Pp
707 The default should be to read and write archives to the standard I/O paths,
708 but tradition (and POSIX) dictates otherwise.
709 .Pp
710 The
711 .Cm r
712 and
713 .Cm u
714 modes require that the archive be uncompressed
715 and located in a regular file on disk.
716 Other archives can be modified using
717 .Cm c
718 mode with the
719 .Pa @archive-file
720 extension.
721 .Pp
722 To archive a file called
723 .Pa @foo
724 or
725 .Pa -foo
726 you must specify it as
727 .Pa ./@foo
728 or
729 .Pa ./-foo ,
730 respectively.
731 .Pp
732 In create mode, a leading
733 .Pa ./
734 is always removed.
735 A leading
736 .Pa /
737 is stripped unless the
738 .Fl P
739 option is specified.
740 .Pp
741 There needs to be better support for file selection on both create
742 and extract.
743 .Pp
744 There is not yet any support for multi-volume archives or for archiving
745 sparse files.
746 .Pp
747 Converting between dissimilar archive formats (such as tar and cpio) using the
748 .Cm @ Ns Pa -
749 convention can cause hard link information to be lost.
750 (This is a consequence of the incompatible ways that different archive
751 formats store hardlink information.)
752 .Pp
753 There are alternative long options for many of the short options that
754 are deliberately not documented.