Files
sbase/tar.1
T

69 lines
1.3 KiB
Groff
Raw Normal View History

.Dd March 21, 2015
.Dt TAR 1
.Os sbase
2015-01-31 14:05:23 +01:00
.Sh NAME
.Nm tar
.Nd create, list or extract a tape archive
.Sh SYNOPSIS
.Nm
.Op Fl C Ar dir
2015-02-08 23:16:27 +01:00
.Op Fl j | Fl z
.Fl x Op Fl m | Fl t
.Op Fl f Ar file
2015-01-31 14:05:23 +01:00
.Nm
.Op Fl C Ar dir
.Op Fl h
2015-01-31 14:05:23 +01:00
.Fl c Ar dir
2015-02-08 23:16:27 +01:00
.Op Fl f Ar file
2015-01-31 14:05:23 +01:00
.Sh DESCRIPTION
.Nm
2015-02-08 23:16:27 +01:00
is the standard file archiver.
2015-01-31 14:05:23 +01:00
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl c Ar path
2015-02-08 23:16:27 +01:00
Create archive from
2015-01-31 14:05:23 +01:00
.Ar path .
.It Fl C Ar dir
Change directory to
.Ar dir
before beginning.
2015-02-08 23:16:27 +01:00
.It Fl f Ar file
Set
.Ar file
as input | output archive instead of stdin | stdout.
2015-01-31 14:05:23 +01:00
.It Fl m
Do not preserve modification time.
.It Fl t
2015-02-08 23:16:27 +01:00
List all files in the archive.
2015-01-31 14:05:23 +01:00
.It Fl x
2015-02-08 23:16:27 +01:00
Extract archive.
.It Fl h
Always dereference symbolic links while recursively traversing directories.
2015-02-08 23:16:27 +01:00
.It Fl j | Fl z
Use bzip2 | gzip decompression. The
2015-02-08 23:16:27 +01:00
.Xr bzip2 1 |
2015-01-31 14:05:23 +01:00
.Xr gzip 1
2015-02-08 23:16:27 +01:00
utilities must be installed separately.
Using these flags is discouraged in favour of the flexibility
and clarity of pipes:
.Bd -literal -offset indent
$ bzcat archive.tar.bz2 | tar -x
$ zcat archive.tar.gz | tar -x
.Ed
.Bd -literal -offset indent
$ tar -c file ... | bzip2 > archive.tar.bz2
$ tar -c file ... | gzip2 > archive.tar.gz
.Ed
2015-01-31 14:05:23 +01:00
.El
.Sh SEE ALSO
.Xr ar 1 ,
.Xr bzip2 1 ,
.Xr gzip 1
2015-02-08 23:16:27 +01:00
.Sh STANDARDS
The
.Nm
utility is compliant with the UStar (Uniform Standard Tape ARchive)
format defined in the
.St -p1003.1-88
specification.