1994-08-07 04:44:32 +04:00
|
|
|
.\" Copyright (c) 1991, 1992, 1993 Free Software Foundation -*- nroff -*-
|
|
|
|
.\" See section COPYING for conditions for redistribution
|
|
|
|
.\"
|
|
|
|
.\" Written by John F. Woods <jfw@jfwhome.funhouse.com>
|
|
|
|
.\"
|
1999-09-27 01:29:31 +04:00
|
|
|
.\" $NetBSD: tar.1,v 1.16 1999/09/26 21:29:31 jdolecek Exp $
|
1994-08-07 04:44:32 +04:00
|
|
|
.\"
|
|
|
|
.Dd 6 August 1994
|
1999-03-22 21:43:46 +03:00
|
|
|
.Os
|
1994-08-07 04:44:32 +04:00
|
|
|
.Dt TAR 1
|
|
|
|
.Sh NAME
|
|
|
|
.Nm tar
|
1999-08-17 07:36:35 +04:00
|
|
|
.Nd tape archiver; manipulate
|
|
|
|
.Dq tar
|
|
|
|
archive files
|
1994-08-07 04:44:32 +04:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Cm Bq -
|
|
|
|
.Op Cm bundled-options
|
|
|
|
.Op Ar [gnu-style-flags]
|
|
|
|
.Op Ar tarfile
|
|
|
|
.Op Ar blocksize
|
|
|
|
.Op Ar exclude-file
|
|
|
|
.Op Ar filenames
|
|
|
|
.Op Fl C Ar directory-name
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
is short for
|
1999-09-26 04:45:44 +04:00
|
|
|
.Dq tape archiver,
|
1994-08-07 04:44:32 +04:00
|
|
|
so named for historical reasons; the
|
|
|
|
.Nm
|
|
|
|
program creates, adds files to, or extracts files from an archive file
|
|
|
|
in
|
|
|
|
.Dq tar
|
|
|
|
format, called a
|
1994-08-08 10:21:50 +04:00
|
|
|
.Ar tarfile .
|
1994-08-07 04:44:32 +04:00
|
|
|
A tarfile is often a magnetic tape, but can be a floppy diskette or any
|
|
|
|
regular disk file.
|
|
|
|
.Pp
|
|
|
|
The first argument word of the
|
|
|
|
.Nm
|
|
|
|
command line is usually a command word of bundled function and modifier
|
|
|
|
letters, optionally preceeded by a dash;
|
|
|
|
it must contain exactly one function letter from the set
|
|
|
|
.Cm A ,
|
|
|
|
.Cm c ,
|
|
|
|
.Cm d ,
|
|
|
|
.Cm r ,
|
|
|
|
.Cm t ,
|
|
|
|
.Cm u ,
|
|
|
|
.Cm x ,
|
|
|
|
for append, create, difference, replace, table of contents, update, and
|
|
|
|
extract (further described below). The command word can also contain other
|
|
|
|
function modifiers described below, some of which will take arguments from
|
|
|
|
the command line in the order they are specified in the command word (review
|
|
|
|
the EXAMPLES section). Functions and function modifiers can also be specified
|
|
|
|
with the GNU argument convention (preceeded by two dashes, one function or
|
|
|
|
modifier per word. Command-line arguments that specify files to
|
|
|
|
add to, extract from, or list from an archive may be given as shell
|
|
|
|
pattern matching strings.
|
|
|
|
.Sh FUNCTIONS
|
|
|
|
Exactly one of the following functions must be specified.
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "--concatenate" -compact
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl A
|
|
|
|
.It Fl -catenate
|
|
|
|
.It Fl "-concatenate"
|
1994-08-17 10:30:31 +04:00
|
|
|
Append the contents of named file, which must itself be a tar archive,
|
|
|
|
to the end of the archive (erasing the old end-of-archive block).
|
|
|
|
This has the effect of adding the files contained in the named file to
|
|
|
|
the first archive, rather than adding the second archive as an element
|
|
|
|
of the first.
|
1994-08-07 04:44:32 +04:00
|
|
|
.Em Note:
|
|
|
|
This option requires a rewritable tarfile,
|
|
|
|
and therefore does not work on quarter-inch cartridge tapes.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl c
|
|
|
|
.It Fl -create
|
1994-08-07 04:44:32 +04:00
|
|
|
Create a new archive (or truncates an old one) and writes the named files
|
|
|
|
to it.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl d
|
|
|
|
.It Fl -diff
|
|
|
|
.It Fl -compare
|
1994-08-07 04:44:32 +04:00
|
|
|
Find differences between files in the archive and corresponding files in
|
|
|
|
the file system.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -delete
|
1994-08-07 04:44:32 +04:00
|
|
|
Delete named files from the archive (Does not work on quarter-inch tapes).
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl r
|
|
|
|
.It Fl -append
|
1994-08-07 04:44:32 +04:00
|
|
|
Append files to the end of an archive (Does not work on quarter-inch tapes).
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl t
|
|
|
|
.It Fl -list
|
1994-08-07 04:44:32 +04:00
|
|
|
List the contents of an archive; if filename arguments are given, only those
|
|
|
|
files are listed, otherwise the entire table of contents is listed.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl u
|
|
|
|
.It Fl -update
|
1994-08-07 04:44:32 +04:00
|
|
|
Append the named files if the on-disk version has a modification date
|
|
|
|
more recent than their copy in the archive (if any). Does not work on
|
|
|
|
quarter-inch tapes.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl x
|
|
|
|
.It Fl -extract
|
|
|
|
.It Fl -get
|
1994-08-07 04:44:32 +04:00
|
|
|
Extract files from an archive. The owner, modification time, and file
|
|
|
|
permissions are restored, if possible. If no
|
1994-11-02 10:06:37 +03:00
|
|
|
.Ar file
|
1994-08-07 04:44:32 +04:00
|
|
|
arguments are given, extract all the files in the archive. If a
|
1994-08-08 10:21:50 +04:00
|
|
|
.Ar filename
|
1994-08-07 04:44:32 +04:00
|
|
|
argument matches the name of a directory on the tape, that directory and
|
|
|
|
its contents are extracted (as well as all directories under that directory).
|
|
|
|
If the archive contains multiple entries corresponding to the same file
|
|
|
|
(see the
|
|
|
|
.Fl -append
|
|
|
|
command above), the last one extracted will overwrite all earlier versions.
|
|
|
|
.El
|
|
|
|
.Sh OPTIONS
|
|
|
|
The other options to
|
|
|
|
.Nm
|
|
|
|
may be combined arbitrarily; single-letter options may be bundled in with
|
|
|
|
the command word. Verbose options which take arguments will be
|
|
|
|
followed by the argument; single-letter options will consume
|
|
|
|
successive command line arguments (see the
|
|
|
|
.Sx EXAMPLES
|
|
|
|
below).
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "--preserve-permissions" -compact
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -help
|
1994-08-07 04:44:32 +04:00
|
|
|
Prints a message listing and briefly describing all the command
|
|
|
|
options to tar.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -atime-preserve
|
1994-08-07 04:44:32 +04:00
|
|
|
Restore the access times on files which are written to tape (note that
|
|
|
|
this will change the inode-change time!).
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl b
|
|
|
|
.It Fl -block-size Ar number
|
1994-08-07 04:44:32 +04:00
|
|
|
Sets the block size for reading or writing to N 512-byte blocks.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl B
|
|
|
|
.It Fl -read-full-blocks
|
1997-02-06 09:05:39 +03:00
|
|
|
Re-assemble short reads into full blocks (for reading 4.2BSD pipes).
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl C Ar directory
|
|
|
|
.It Fl -directory Ar directory
|
|
|
|
Change to
|
|
|
|
.Ar directory
|
|
|
|
for extraction.
|
|
|
|
.It Fl -checkpoint
|
1994-08-07 04:44:32 +04:00
|
|
|
Print directory names while reading the archive.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl f Ar [hostname:]file
|
1994-11-02 10:06:37 +03:00
|
|
|
.It Fl -file Ar [hostname:]file
|
1994-08-08 10:21:50 +04:00
|
|
|
Read or write the specified
|
|
|
|
.Ar file
|
1997-02-06 09:05:39 +03:00
|
|
|
.Po default is Pa /dev/rst0 Pc .
|
|
|
|
If a
|
1994-08-08 10:21:50 +04:00
|
|
|
.Ar hostname
|
|
|
|
is specified,
|
|
|
|
.Nm
|
|
|
|
will use
|
|
|
|
.Xr rmt 8
|
|
|
|
to read or write the specified
|
|
|
|
.Ar file
|
1997-02-06 09:05:39 +03:00
|
|
|
on a remote machine. If the given
|
|
|
|
.Ar file
|
|
|
|
is
|
|
|
|
.Ql - ,
|
|
|
|
then
|
|
|
|
.Nm
|
|
|
|
uses stdin or stdout.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl F Ar file
|
|
|
|
.It Fl -info-script Ar file
|
|
|
|
.It Fl -new-volume-script Ar file
|
1994-08-07 04:44:32 +04:00
|
|
|
Run a script at the end of each archive volume (implies
|
|
|
|
.Fl M ) .
|
1997-06-06 11:59:52 +04:00
|
|
|
.It Fl -fast-read
|
|
|
|
Stop after all non-wildcard extraction targets have been found
|
|
|
|
in the archive.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl G
|
|
|
|
.It Fl -incremental
|
1994-08-07 04:44:32 +04:00
|
|
|
Create/list/extract old GNU-format incremental backup.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl g Ar file
|
|
|
|
.It Fl -listed-incremental Ar file
|
1994-08-07 04:44:32 +04:00
|
|
|
Create/list/extract new GNU-format incremental backup.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl h
|
1996-12-03 08:24:56 +03:00
|
|
|
.It Fl -dereference
|
1994-08-07 04:44:32 +04:00
|
|
|
Don't write symlinks as symlinks; write the data of the files they name.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl i
|
|
|
|
.It Fl -ignore-zeros
|
1994-08-07 04:44:32 +04:00
|
|
|
Ignore blocks of zeroes in archive (usually means End-Of-File).
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -ignore-failed-read
|
1994-08-07 04:44:32 +04:00
|
|
|
Don't exit with non-zero status on unreadable files.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl k
|
1996-03-13 17:55:00 +03:00
|
|
|
.It Fl -keep-old-files
|
1994-08-07 04:44:32 +04:00
|
|
|
Keep files which already exist on disk; don't overwrite them from the archive.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl K Ar file
|
|
|
|
.It Fl -starting-file Ar file
|
|
|
|
Begin at
|
|
|
|
.Ar file
|
|
|
|
in the archive.
|
|
|
|
.It Fl l
|
|
|
|
.It Fl -one-file-system
|
1994-08-07 04:44:32 +04:00
|
|
|
Stay in local filesystem when creating an archive (do not cross mount
|
|
|
|
points).
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl L Ar number
|
|
|
|
.It Fl -tape-length Ar number
|
1994-08-07 04:44:32 +04:00
|
|
|
Change tapes after writing N*1024 bytes.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl m
|
|
|
|
.It Fl -modification-time
|
1994-08-07 04:44:32 +04:00
|
|
|
Don't extract file modified time.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl M
|
|
|
|
.It Fl -multi-volume
|
1994-08-07 04:44:32 +04:00
|
|
|
Create/list/extract multi-volume archive.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl N Ar date
|
|
|
|
.It Fl -after-date Ar date
|
|
|
|
.It Fl -newer Ar date
|
|
|
|
Only store files newer than
|
|
|
|
.Ar date .
|
|
|
|
.It Fl o
|
|
|
|
.It Fl -old-archive
|
|
|
|
.It Fl -portability
|
1994-08-07 04:44:32 +04:00
|
|
|
Write a V7 format archive, rather than POSIX format.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl O
|
|
|
|
.It Fl -to-stdout
|
1994-08-07 04:44:32 +04:00
|
|
|
Extract files to standard output.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl p
|
|
|
|
.It Fl -same-permissions
|
|
|
|
.It Fl -preserve-permissions
|
1994-08-07 04:44:32 +04:00
|
|
|
Extract all protection information.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -preserve
|
1994-08-07 04:44:32 +04:00
|
|
|
Has the effect of
|
|
|
|
.Fl p s.
|
1996-03-13 17:55:00 +03:00
|
|
|
.It Fl P
|
|
|
|
.It Fl -absolute-paths
|
|
|
|
Don't strip leading `/'s from file names.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl R
|
|
|
|
.It Fl -record-number
|
1994-08-07 04:44:32 +04:00
|
|
|
Show record number within archive with each message.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -remove-files
|
1994-08-07 04:44:32 +04:00
|
|
|
Remove files after adding them to the archive.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl s
|
|
|
|
.It Fl -same-order
|
|
|
|
.It Fl -preserve-order
|
1994-08-07 04:44:32 +04:00
|
|
|
List of names to extract is sorted to match archive.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl S
|
|
|
|
.It Fl -sparse
|
1994-08-07 04:44:32 +04:00
|
|
|
Handle "sparse" files efficiently.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl T Ar file
|
|
|
|
.It Fl -files-from Ar file
|
|
|
|
Get names of files to extract or create from
|
|
|
|
.Ar file ,
|
|
|
|
one per line.
|
|
|
|
.It Fl -null
|
1994-08-07 04:44:32 +04:00
|
|
|
Modifies behavior of
|
|
|
|
.Fl T
|
|
|
|
to expect null-terminated names; disables
|
|
|
|
.Fl C.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -totals
|
1997-02-06 09:05:39 +03:00
|
|
|
Prints total bytes written with
|
|
|
|
.Fl -create .
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl v
|
|
|
|
.It Fl -verbose
|
1997-02-06 09:05:39 +03:00
|
|
|
Lists files written to archive with
|
|
|
|
.Fl -create
|
|
|
|
or extracted with
|
|
|
|
.Fl -extract ;
|
|
|
|
lists file protection information along with file names with
|
|
|
|
.Fl -list .
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl V Ar volume-name
|
|
|
|
.It Fl -label Ar volume-name
|
|
|
|
Create archive with the given
|
|
|
|
.Ar volume-name .
|
|
|
|
.It Fl -version
|
1994-08-07 04:44:32 +04:00
|
|
|
Print tar program version number.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl w
|
|
|
|
.It Fl -interactive
|
|
|
|
.It Fl -confirmation
|
1994-08-07 04:44:32 +04:00
|
|
|
Ask for confirmation for every action.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl W
|
|
|
|
.It Fl -verify
|
1994-08-07 04:44:32 +04:00
|
|
|
Attempt to verify the archive after writing it.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -exclude Ar pattern
|
|
|
|
Exclude files matching the
|
|
|
|
.Ar pattern
|
|
|
|
(don't extract them, don't add them, don't list them).
|
|
|
|
.It Fl X Ar file
|
|
|
|
.It Fl -exclude-from Ar file
|
|
|
|
Exclude files listed in
|
|
|
|
.Ar file .
|
|
|
|
.It Fl Z
|
|
|
|
.It Fl -compress
|
|
|
|
.It Fl -uncompress
|
|
|
|
Filter the archive through
|
|
|
|
.Xr compress 1 .
|
|
|
|
.It Fl z
|
|
|
|
.It Fl -gzip
|
|
|
|
.It Fl -gunzip
|
1994-08-07 04:44:32 +04:00
|
|
|
Filter the archive through
|
1994-08-08 10:21:50 +04:00
|
|
|
.Xr gzip 1 .
|
|
|
|
.It Fl -use-compress-program Ar program
|
1994-08-07 04:44:32 +04:00
|
|
|
Filter the archive through
|
1994-08-08 10:21:50 +04:00
|
|
|
.Ar program
|
|
|
|
(which must accept
|
1994-08-07 04:44:32 +04:00
|
|
|
.Fl d
|
1999-09-26 04:50:05 +04:00
|
|
|
to mean
|
|
|
|
.Do decompress Dc Ns ).
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -block-compress
|
1994-08-07 04:44:32 +04:00
|
|
|
Block the output of compression program for tapes or floppies
|
|
|
|
(otherwise writes will be of odd length, which device drivers may reject).
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl [0-7][lmh]
|
1994-08-07 04:44:32 +04:00
|
|
|
Specify tape drive and density.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -norecurse
|
1994-08-07 04:44:32 +04:00
|
|
|
Don't recurse into subdirectories when creating.
|
1994-08-08 10:21:50 +04:00
|
|
|
.It Fl -unlink
|
1994-08-07 04:44:32 +04:00
|
|
|
Unlink files before creating them.
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
1997-02-06 09:05:39 +03:00
|
|
|
To create an archive on tape drive
|
|
|
|
.Pa /dev/rst0
|
|
|
|
with a block size of 20
|
1999-09-26 05:31:23 +04:00
|
|
|
blocks, containing files named
|
|
|
|
.Pa bert
|
|
|
|
and
|
|
|
|
.Pa ernie ,
|
|
|
|
you can enter
|
1994-08-07 04:44:32 +04:00
|
|
|
.Dl tar cfb /dev/rst0 20 bert ernie
|
|
|
|
or
|
|
|
|
.Dl tar --create --file /dev/rst0 --block-size 20 bert ernie
|
|
|
|
Note that the
|
1994-08-08 10:21:50 +04:00
|
|
|
.Fl f
|
1994-08-07 04:44:32 +04:00
|
|
|
and
|
1994-08-08 10:21:50 +04:00
|
|
|
.Fl b
|
1994-08-07 04:44:32 +04:00
|
|
|
flags both require arguments, which they take from the command line in
|
|
|
|
the order they were listed in the command word.
|
|
|
|
.Pp
|
1997-02-06 09:05:39 +03:00
|
|
|
Because
|
|
|
|
.Pa /dev/rst0
|
|
|
|
is the default device, and 20 is the default block
|
1994-08-07 04:44:32 +04:00
|
|
|
size, the above example could have simply been
|
|
|
|
.Dl tar c bert ernie
|
|
|
|
.Pp
|
|
|
|
To extract all the C sources and headers from an archive named
|
1999-09-26 05:31:23 +04:00
|
|
|
.Pa backup.tar ,
|
|
|
|
type
|
|
|
|
.Dl tar xf backup.tar \&"*.[ch]\&"
|
1994-08-07 04:44:32 +04:00
|
|
|
Note that the pattern must be quoted to prevent the shell from
|
|
|
|
attempting to expand it according the files in the current working
|
|
|
|
directory (the shell does not have access to the list of files in
|
|
|
|
the archive, of course).
|
|
|
|
.Pp
|
1997-02-06 09:05:39 +03:00
|
|
|
To copy a file hierarchy while preserving metadata, type
|
1999-09-26 05:31:23 +04:00
|
|
|
.\" "-C destdir" and "36 tar/" are hack to prevent not to pass
|
|
|
|
.\" more than 10 argument to .Dl
|
1997-02-06 09:05:39 +03:00
|
|
|
.Dl tar cf - -C srcdir ". |" tar xpf "-C destdir"
|
|
|
|
.Pp
|
1994-08-07 04:44:32 +04:00
|
|
|
To create a compressed archive on diskette, using gzip, use a command-line like
|
1999-09-26 05:31:23 +04:00
|
|
|
.Dl tar --block-compress -z -c -v -f /dev/rfd1a -b "36 tar/"
|
1994-08-07 04:44:32 +04:00
|
|
|
Note that you cannot mix bundled flags and --style flags; you can use
|
|
|
|
single-letter flags in the manner above, rather than having to type
|
1999-09-26 05:31:23 +04:00
|
|
|
.Dl tar --block-compress --gzip --create --verbose --file /dev/rfd1a --block-size "36 tar/"
|
1994-08-07 04:44:32 +04:00
|
|
|
.Pp
|
|
|
|
The above-created diskette can be listed with
|
|
|
|
.Dl tar tvfbz /dev/rfd1a 36
|
1994-08-17 10:30:31 +04:00
|
|
|
.Pp
|
|
|
|
To join two tar archives into a single archive, use
|
|
|
|
.Dl tar Af archive1.tar archive2.tar
|
1999-09-26 05:31:23 +04:00
|
|
|
which will add the files contained in
|
|
|
|
.Pa archive2.tar
|
|
|
|
onto the end of
|
|
|
|
.Pa archive1.tar
|
|
|
|
(note that this can't be done by simply typing
|
1994-08-17 10:30:31 +04:00
|
|
|
.Dl cat archive2.tar >> archive1.tar
|
|
|
|
because of the end-of-file block at the end of a tar archive).
|
1994-08-07 04:44:32 +04:00
|
|
|
.Sh ENVIRONMENT
|
1997-02-06 09:05:39 +03:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
program examines the following environment variables:
|
1994-08-07 04:44:32 +04:00
|
|
|
.Bl -tag -width "POSIXLY-CORRECT"
|
1997-02-06 09:05:39 +03:00
|
|
|
.It Ev POSIXLY-CORRECT
|
|
|
|
Normally,
|
|
|
|
.Nm
|
|
|
|
will process flag arguments that appear in the file list.
|
|
|
|
If set in the environment, this flag causes
|
|
|
|
.Nm
|
|
|
|
to consider the first
|
1994-08-07 04:44:32 +04:00
|
|
|
non-flag argument to terminate flag processing, as per the POSIX specification.
|
1997-02-06 09:05:39 +03:00
|
|
|
.It Ev SHELL
|
1994-08-07 04:44:32 +04:00
|
|
|
In interactive mode, a permissible response to the prompt is to
|
1999-09-26 05:31:23 +04:00
|
|
|
request to spawn a subshell, which will be
|
|
|
|
.Pa /bin/sh
|
|
|
|
unless the
|
1997-02-06 09:05:39 +03:00
|
|
|
.Ev SHELL
|
|
|
|
variable is set.
|
|
|
|
.It Ev TAPE
|
|
|
|
Changes the default tape drive (which is still overridden by the
|
1994-08-07 04:44:32 +04:00
|
|
|
.Fl f
|
|
|
|
flag).
|
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width "/dev/rst0"
|
|
|
|
.It Pa /dev/rst0
|
|
|
|
The default tape drive.
|
|
|
|
.El
|
|
|
|
.\" This next request is for sections 1, 6, 7 & 8 only
|
|
|
|
.\" (command return values (to shell) and fprintf/stderr type diagnostics)
|
|
|
|
.\" .Sh DIAGNOSTICS
|
|
|
|
.Sh SEE ALSO
|
1994-08-08 10:21:50 +04:00
|
|
|
.Xr compress 1 ,
|
|
|
|
.Xr gzip 1 ,
|
|
|
|
.Xr pax 1 ,
|
1999-09-27 01:29:31 +04:00
|
|
|
.Xr cpio 1 ,
|
|
|
|
.Xr symlink 7 ,
|
1994-08-08 10:21:50 +04:00
|
|
|
.Xr rmt 8
|
1994-08-07 04:44:32 +04:00
|
|
|
.\" .Sh STANDARDS
|
|
|
|
.Sh HISTORY
|
1998-04-28 10:00:51 +04:00
|
|
|
The tar format has a rich history, dating back to
|
|
|
|
.At v6 .
|
1994-08-07 04:44:32 +04:00
|
|
|
The current implementation of tar is the GNU implementation, which
|
|
|
|
originated as the public-domain tar written by John Gilmore.
|
|
|
|
.Sh AUTHORS
|
|
|
|
A cast of thousands, including [as listed in the ChangeLog file in the
|
1998-04-28 10:00:51 +04:00
|
|
|
source]
|
|
|
|
John Gilmore (author of original public domain version),
|
|
|
|
Jay Fenlason (first GNU author),
|
|
|
|
Joy Kendall,
|
|
|
|
Jim Kingdon,
|
|
|
|
David J. MacKenzie,
|
|
|
|
Michael I. Bushnell,
|
|
|
|
Noah Friedman,
|
|
|
|
and innumerable others who have contributed fixes and additions.
|
1994-08-07 04:44:32 +04:00
|
|
|
.Sh BUGS
|
1994-08-08 10:21:50 +04:00
|
|
|
The
|
|
|
|
.Fl C
|
|
|
|
feature does not work like historical tar programs, and is probably
|
1994-08-07 04:44:32 +04:00
|
|
|
untrustworthy.
|
1994-08-17 10:30:31 +04:00
|
|
|
.Pp
|
1997-02-06 09:05:39 +03:00
|
|
|
The
|
|
|
|
.Fl A
|
|
|
|
command should work to join an arbitrary number of tar archives
|
1994-08-17 10:30:31 +04:00
|
|
|
together, but it does not; attempting to do so leaves the
|
|
|
|
end-of-archive blocks in place for the second and subsequent archives.
|