Add our READMEs.
[dragonfly.git] / contrib / libarchive-2.1 / tar / bsdtar.1
1 .\" Copyright (c) 2003-2007 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.33 2007/01/09 08:12:17 kientzle 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
171 .Fx ,
172 the default tape device is
173 .Pa /dev/sa0 . )
174 .It Fl -fast-read ( Fl W Cm fast-read )
175 (x and t mode only)
176 Extract or list only the first archive entry that matches each pattern
177 or filename operand.
178 Exit as soon as each specified pattern or filename has been matched.
179 By default, the archive is always read to the very end, since
180 there can be multiple entries with the same name and, by convention,
181 later entries overwrite earlier entries.
182 This option is provided as a performance optimization.
183 .It Fl H
184 (c and r mode only)
185 Symbolic links named on the command line will be followed; the
186 target of the link will be archived, not the link itself.
187 .It Fl h
188 (c and r mode only)
189 Synonym for
190 .Fl L .
191 .It Fl I
192 Synonym for
193 .Fl T .
194 .It Fl -include Ar pattern ( Fl W Cm include Ns = Ns Ar pattern )
195 Process only files or directories that match the specified pattern.
196 Note that exclusions specified with
197 .Fl -exclude
198 take precedence over inclusions.
199 If no inclusions are explicitly specified, all entries are processed by
200 default.
201 The
202 .Fl -include
203 option is especially useful when filtering archives.
204 For example, the command
205 .Dl Nm Fl c Fl f Pa new.tar Fl -include='*foo*' Cm @ Ns Pa old.tgz
206 creates a new archive
207 .Pa new.tar
208 containing only the entries from
209 .Pa old.tgz
210 containing the string
211 .Sq foo .
212 .It Fl j
213 (c mode only)
214 Compress the resulting archive with
215 .Xr bzip2 1 .
216 In extract or list modes, this option is ignored.
217 Note that, unlike other
218 .Nm tar
219 implementations, this implementation recognizes bzip2 compression
220 automatically when reading archives.
221 .It Fl k
222 (x mode only)
223 Do not overwrite existing files.
224 In particular, if a file appears more than once in an archive,
225 later copies will not overwrite earlier copies.
226 .It Fl L
227 (c and r mode only)
228 All symbolic links will be followed.
229 Normally, symbolic links are archived as such.
230 With this option, the target of the link will be archived instead.
231 .It Fl l
232 If
233 .Ev POSIXLY_CORRECT
234 is specified in the environment, this is a synonym for the
235 .Fl -check-links
236 option.
237 Otherwise, an error will be displayed.
238 Users who desire behavior compatible with GNU tar should use
239 the
240 .Fl -one-file-system
241 option instead.
242 .It Fl m
243 (x mode only)
244 Do not extract modification time.
245 By default, the modification time is set to the time stored in the archive.
246 .It Fl n
247 (c, r, u modes only)
248 Do not recursively archive the contents of directories.
249 .It Fl -newer Ar date ( Fl W Cm newer Ns = Ns Ar date )
250 (c, r, u modes only)
251 Only include files and directories newer than the specified date.
252 This compares ctime entries.
253 .It Fl -newer-mtime Ar date ( Fl W Cm newer-mtime Ns = Ns Ar date )
254 (c, r, u modes only)
255 Like
256 .Fl -newer ,
257 except it compares mtime entries instead of ctime entries.
258 .It Fl -newer-than Pa file ( Fl W Cm newer-than Ns = Ns Pa file )
259 (c, r, u modes only)
260 Only include files and directories newer than the specified file.
261 This compares ctime entries.
262 .It Fl -newer-mtime-than Pa file ( Fl W Cm newer-mtime-than Ns = Ns Pa file )
263 (c, r, u modes only)
264 Like
265 .Fl -newer-than ,
266 except it compares mtime entries instead of ctime entries.
267 .It Fl -nodump ( Fl W Cm nodump )
268 (c and r modes only)
269 Honor the nodump file flag by skipping this file.
270 .It Fl -null ( Fl W Cm null )
271 (use with
272 .Fl I ,
273 .Fl T ,
274 or
275 .Fl X )
276 Filenames or patterns are separated by null characters,
277 not by newlines.
278 This is often used to read filenames output by the
279 .Fl print0
280 option to
281 .Xr find 1 .
282 .It Fl O
283 (x, t modes only)
284 In extract (-x) mode, files will be written to standard out rather than
285 being extracted to disk.
286 In list (-t) mode, the file listing will be written to stderr rather than
287 the usual stdout.
288 .It Fl o
289 (x mode only)
290 Use the user and group of the user running the program rather
291 than those specified in the archive.
292 Note that this has no significance unless
293 .Fl p
294 is specified, and the program is being run by the root user.
295 In this case, the file modes and flags from
296 the archive will be restored, but ACLs or owner information in
297 the archive will be discarded.
298 .It Fl -one-file-system ( Fl W Cm one-file-system )
299 (c, r, and u modes)
300 Do not cross mount points.
301 .It Fl P
302 Preserve pathnames.
303 By default, absolute pathnames (those that begin with a /
304 character) have the leading slash removed both when creating archives
305 and extracting from them.
306 Also,
307 .Nm
308 will refuse to extract archive entries whose pathnames contain
309 .Pa ..
310 or whose target directory would be altered by a symlink.
311 This option suppresses these behaviors.
312 .It Fl p
313 (x mode only)
314 Preserve file permissions.
315 Attempt to restore the full permissions, including owner, file modes, file
316 flags and ACLs, if available, for each item extracted from the archive.
317 By default, newly-created files are owned by the user running
318 .Nm ,
319 the file mode is restored for newly-created regular files, and
320 all other types of entries receive default permissions.
321 If
322 .Nm
323 is being run by root, the default is to restore the owner unless the
324 .Fl o
325 option is also specified.
326 .It Fl -strip-components Ar count ( Fl W Cm strip-components Ns = Ns Ar count )
327 (x and t mode only)
328 Remove the specified number of leading path elements.
329 Pathnames with fewer elements will be silently skipped.
330 Note that the pathname is edited after checking inclusion/exclusion patterns
331 but before security checks.
332 .It Fl T Ar filename
333 In x or t mode,
334 .Nm
335 will read the list of names to be extracted from
336 .Pa filename .
337 In c mode,
338 .Nm
339 will read names to be archived from
340 .Pa filename .
341 The special name
342 .Dq -C
343 on a line by itself will cause the current directory to be changed to
344 the directory specified on the following line.
345 Names are terminated by newlines unless
346 .Fl -null
347 is specified.
348 Note that
349 .Fl -null
350 also disables the special handling of lines containing
351 .Dq -C .
352 .It Fl U
353 (x mode only)
354 Unlink files before creating them.
355 Without this option,
356 .Nm
357 overwrites existing files, which preserves existing hardlinks.
358 With this option, existing hardlinks will be broken, as will any
359 symlink that would affect the location of an extracted file.
360 .It Fl -use-compress-program Ar program
361 Pipe the input (in x or t mode) or the output (in c mode) through
362 .Pa program
363 instead of using the builtin compression support.
364 .It Fl v
365 Produce verbose output.
366 In create and extract modes,
367 .Nm
368 will list each file name as it is read from or written to
369 the archive.
370 In list mode,
371 .Nm
372 will produce output similar to that of
373 .Xr ls 1 .
374 Additional
375 .Fl v
376 options will provide additional detail.
377 .It Fl W Ar longopt=value
378 Long options (preceded by
379 .Fl - )
380 are only supported directly on systems that have the
381 .Xr getopt_long 3
382 function.
383 The
384 .Fl W
385 option can be used to access long options on systems that
386 do not support this function.
387 .It Fl w
388 Ask for confirmation for every action.
389 .It Fl X Ar filename
390 Read a list of exclusion patterns from the specified file.
391 See
392 .Fl -exclude
393 for more information about the handling of exclusions.
394 .It Fl y
395 (c mode only)
396 Compress the resulting archive with
397 .Xr bzip2 1 .
398 In extract or list modes, this option is ignored.
399 Note that, unlike other
400 .Nm tar
401 implementations, this implementation recognizes bzip2 compression
402 automatically when reading archives.
403 .It Fl z
404 (c mode only)
405 Compress the resulting archive with
406 .Xr gzip 1 .
407 In extract or list modes, this option is ignored.
408 Note that, unlike other
409 .Nm tar
410 implementations, this implementation recognizes gzip compression
411 automatically when reading archives.
412 .El
413 .Sh ENVIRONMENT
414 The following environment variables affect the execution of
415 .Nm :
416 .Bl -tag -width ".Ev BLOCKSIZE"
417 .It Ev LANG
418 The locale to use.
419 See
420 .Xr environ 7
421 for more information.
422 .It Ev POSIXLY_CORRECT
423 If this environment variable is defined, the
424 .Fl l
425 option will be interpreted in accordance with
426 .St -p1003.1-96 .
427 .It Ev TAPE
428 The default tape device.
429 The
430 .Fl f
431 option overrides this.
432 .It Ev TZ
433 The timezone to use when displaying dates.
434 See
435 .Xr environ 7
436 for more information.
437 .El
438 .Sh FILES
439 .Bl -tag -width ".Ev BLOCKSIZE"
440 .It Pa /dev/sa0
441 The default tape device, if not overridden by the
442 .Ev TAPE
443 environment variable or the
444 .Fl f
445 option.
446 .El
447 .Sh EXIT STATUS
448 .Ex -std
449 .Sh EXAMPLES
450 The following creates a new archive
451 called
452 .Ar file.tar.gz
453 that contains two files
454 .Ar source.c
455 and
456 .Ar source.h :
457 .Dl Nm Fl czf Pa file.tar.gz Pa source.c Pa source.h
458 .Pp
459 To view a detailed table of contents for this
460 archive:
461 .Dl Nm Fl tvf Pa file.tar.gz
462 .Pp
463 To extract all entries from the archive on
464 the default tape drive:
465 .Dl Nm Fl x
466 .Pp
467 To move file hierarchies, invoke
468 .Nm
469 as
470 .Dl Nm Fl cf Pa - Fl C Pa srcdir\ . | Nm Fl xpf Pa - Fl C Pa destdir
471 or more traditionally
472 .Dl cd srcdir \&; Nm Fl cf Pa -\ . | ( cd destdir \&; Nm Fl xpf Pa - )
473 .Pp
474 In create mode, the list of files and directories to be archived
475 can also include directory change instructions of the form
476 .Cm -C Ns Pa foo/baz
477 and archive inclusions of the form
478 .Cm @ Ns Pa archive-file .
479 For example, the command line
480 .Dl Nm Fl c Fl f Pa new.tar Pa foo1 Cm @ Ns Pa old.tgz Cm -C Ns Pa /tmp Pa foo2
481 will create a new archive
482 .Pa new.tar .
483 .Nm
484 will read the file
485 .Pa foo1
486 from the current directory and add it to the output archive.
487 It will then read each entry from
488 .Pa old.tgz
489 and add those entries to the output archive.
490 Finally, it will switch to the
491 .Pa /tmp
492 directory and add
493 .Pa foo2
494 to the output archive.
495 .Pp
496 The
497 .Fl -newer
498 and
499 .Fl -newer-mtime
500 switches accept a variety of common date and time specifications, including
501 .Dq 12 Mar 2005 7:14:29pm ,
502 .Dq 2005-03-12 19:14 ,
503 .Dq 5 minutes ago ,
504 and
505 .Dq 19:14 PST May 1 .
506 .Sh COMPATIBILITY
507 The bundled-arguments format is supported for compatibility
508 with historic implementations.
509 It consists of an initial word (with no leading - character) in which
510 each character indicates an option.
511 Arguments follow as separate words.
512 The order of the arguments must match the order
513 of the corresponding characters in the bundled command word.
514 For example,
515 .Dl Nm Cm tbf 32 Pa file.tar
516 specifies three flags
517 .Cm t ,
518 .Cm b ,
519 and
520 .Cm f .
521 The
522 .Cm b
523 and
524 .Cm f
525 flags both require arguments,
526 so there must be two additional items
527 on the command line.
528 The
529 .Ar 32
530 is the argument to the
531 .Cm b
532 flag, and
533 .Ar file.tar
534 is the argument to the
535 .Cm f
536 flag.
537 .Pp
538 The mode options c, r, t, u, and x and the options
539 b, f, l, m, o, v, and w comply with SUSv2.
540 .Pp
541 For maximum portability, scripts that invoke
542 .Nm tar
543 should use the bundled-argument format above, should limit
544 themselves to the
545 .Cm c ,
546 .Cm t ,
547 and
548 .Cm x
549 modes, and the
550 .Cm b ,
551 .Cm f ,
552 .Cm m ,
553 .Cm v ,
554 and
555 .Cm w
556 options.
557 .Pp
558 On systems that support getopt_long(), additional long options
559 are available to improve compatibility with other tar implementations.
560 .Sh SECURITY
561 Certain security issues are common to many archiving programs, including
562 .Nm .
563 In particular, carefully-crafted archives can request that
564 .Nm
565 extract files to locations outside of the target directory.
566 This can potentially be used to cause unwitting users to overwrite
567 files they did not intend to overwrite.
568 If the archive is being extracted by the superuser, any file
569 on the system can potentially be overwritten.
570 There are three ways this can happen.
571 Although
572 .Nm
573 has mechanisms to protect against each one,
574 savvy users should be aware of the implications:
575 .Bl -bullet -width indent
576 .It
577 Archive entries can have absolute pathnames.
578 By default,
579 .Nm
580 removes the leading
581 .Pa /
582 character from filenames before restoring them to guard against this problem.
583 .It
584 Archive entries can have pathnames that include
585 .Pa ..
586 components.
587 By default,
588 .Nm
589 will not extract files containing
590 .Pa ..
591 components in their pathname.
592 .It
593 Archive entries can exploit symbolic links to restore
594 files to other directories.
595 An archive can restore a symbolic link to another directory,
596 then use that link to restore a file into that directory.
597 To guard against this,
598 .Nm
599 checks each extracted path for symlinks.
600 If the final path element is a symlink, it will be removed
601 and replaced with the archive entry.
602 If
603 .Fl U
604 is specified, any intermediate symlink will also be unconditionally removed.
605 If neither
606 .Fl U
607 nor
608 .Fl P
609 is specified,
610 .Nm
611 will refuse to extract the entry.
612 .El
613 To protect yourself, you should be wary of any archives that
614 come from untrusted sources.
615 You should examine the contents of an archive with
616 .Dl Nm Fl tf Pa filename
617 before extraction.
618 You should use the
619 .Fl k
620 option to ensure that
621 .Nm
622 will not overwrite any existing files or the
623 .Fl U
624 option to remove any pre-existing files.
625 You should generally not extract archives while running with super-user
626 privileges.
627 Note that the
628 .Fl P
629 option to
630 .Nm
631 disables the security checks above and allows you to extract
632 an archive while preserving any absolute pathnames,
633 .Pa ..
634 components, or symlinks to other directories.
635 .Sh SEE ALSO
636 .Xr bzip2 1 ,
637 .Xr cpio 1 ,
638 .Xr gzip 1 ,
639 .Xr mt 1 ,
640 .Xr pax 1 ,
641 .Xr shar 1 ,
642 .Xr libarchive 3 ,
643 .Xr libarchive-formats 5 ,
644 .Xr tar 5
645 .Sh STANDARDS
646 There is no current POSIX standard for the tar command; it appeared
647 in
648 .St -p1003.1-96
649 but was dropped from
650 .St -p1003.1-2001 .
651 The options used by this implementation were developed by surveying a
652 number of existing tar implementations as well as the old POSIX specification
653 for tar and the current POSIX specification for pax.
654 .Pp
655 The ustar and pax interchange file formats are defined by
656 .St -p1003.1-2001
657 for the pax command.
658 .Sh HISTORY
659 A
660 .Nm tar
661 command appeared in Seventh Edition Unix.
662 There have been numerous other implementations,
663 many of which extended the file format.
664 John Gilmore's
665 .Nm pdtar
666 public-domain implementation (circa November, 1987)
667 was quite influential, and formed the basis of GNU tar.
668 GNU tar was included as the standard system tar
669 in
670 .Fx
671 beginning with
672 .Fx 1.0 .
673 .Pp
674 This is a complete re-implementation based on the
675 .Xr libarchive 3
676 library.
677 .Sh BUGS
678 POSIX and GNU violently disagree about the meaning of the
679 .Fl l
680 option.
681 Because of the potential for disaster if someone expects
682 one behavior and gets the other, the
683 .Fl l
684 option is deliberately broken in this implementation.
685 .Pp
686 The
687 .Fl C Pa dir
688 option may differ from historic implementations.
689 .Pp
690 All archive output is written in correctly-sized blocks, even
691 if the output is being compressed.
692 Whether or not the last output block is padded to a full
693 block size varies depending on the format and the
694 output device.
695 For tar and cpio formats, the last block of output is padded
696 to a full block size if the output is being
697 written to standard output or to a character or block device such as
698 a tape drive.
699 If the output is being written to a regular file, the last block
700 will not be padded.
701 Many compressors, including
702 .Xr gzip 1
703 and
704 .Xr bzip2 1 ,
705 complain about the null padding when decompressing an archive created by
706 .Nm ,
707 although they still extract it correctly.
708 .Pp
709 The compression and decompression is implemented internally, so
710 there may be insignificant differences between the compressed output
711 generated by
712 .Dl Nm Fl czf Pa - file
713 and that generated by
714 .Dl Nm Fl cf Pa - file | Nm gzip
715 .Pp
716 The default should be to read and write archives to the standard I/O paths,
717 but tradition (and POSIX) dictates otherwise.
718 .Pp
719 The
720 .Cm r
721 and
722 .Cm u
723 modes require that the archive be uncompressed
724 and located in a regular file on disk.
725 Other archives can be modified using
726 .Cm c
727 mode with the
728 .Pa @archive-file
729 extension.
730 .Pp
731 To archive a file called
732 .Pa @foo
733 or
734 .Pa -foo
735 you must specify it as
736 .Pa ./@foo
737 or
738 .Pa ./-foo ,
739 respectively.
740 .Pp
741 In create mode, a leading
742 .Pa ./
743 is always removed.
744 A leading
745 .Pa /
746 is stripped unless the
747 .Fl P
748 option is specified.
749 .Pp
750 There needs to be better support for file selection on both create
751 and extract.
752 .Pp
753 There is not yet any support for multi-volume archives or for archiving
754 sparse files.
755 .Pp
756 Converting between dissimilar archive formats (such as tar and cpio) using the
757 .Cm @ Ns Pa -
758 convention can cause hard link information to be lost.
759 (This is a consequence of the incompatible ways that different archive
760 formats store hardlink information.)
761 .Pp
762 There are alternative long options for many of the short options that
763 are deliberately not documented.