Print this page
OS-1626 tar -C support on extract would be nice

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/tar.1
          +++ new/usr/src/man/man1/tar.1
↓ open down ↓ 35 lines elided ↑ open up ↑
  36   36  
  37   37  .LP
  38   38  .nf
  39   39  \fBtar\fR u[BDeEFhilnqTvw@/[0-7]][bfk][j|J|z|Z] [\fIblocksize\fR] [\fItarfile\fR]
  40   40       [\fIsize\fR] \fIfile\fR...
  41   41  .fi
  42   42  
  43   43  .LP
  44   44  .nf
  45   45  \fBtar\fR x[BeFhilmnopqTvw@/[0-7]][fk][X...][j|J|z|Z] [\fItarfile\fR] [\fIsize\fR]
  46      -     [\fIexclude-file\fR]... [\fIfile\fR]...
       46 +     [\fIexclude-file\fR]... [\(miC \fIdirectory\fR] [\fIfile\fR]...
  47   47  .fi
  48   48  
  49   49  .SH DESCRIPTION
  50   50  .sp
  51   51  .LP
  52   52  The \fBtar\fR command archives and extracts files to and from a single file
  53   53  called a \fItarfile\fR. A tarfile is usually a magnetic tape, but it can be any
  54   54  file. \fBtar\fR's actions are controlled by the \fIkey\fR argument. The
  55   55  \fIkey\fR is a string of characters containing exactly one function letter
  56   56  (\fBc\fR, \fBr\fR, \fBt\fR , \fBu\fR, or \fBx\fR) and zero or more function
↓ open down ↓ 17 lines elided ↑ open up ↑
  74   74  .na
  75   75  \fB\fB\(miC\fR \fIdirectory file\fR\fR
  76   76  .ad
  77   77  .sp .6
  78   78  .RS 4n
  79   79  Performs a \fBchdir\fR (see \fBcd\fR(1)) operation on \fIdirectory\fR and
  80   80  performs the \fBc\fR (create) or \fBr\fR (replace) operation on \fIfile\fR. Use
  81   81  short relative path names for \fIfile\fR. If \fIfile\fR is "\fB\&.\fR", archive
  82   82  all files in \fIdirectory\fR. This operand enables archiving files from
  83   83  multiple directories not related by a close common parent.
       84 +.sp
       85 +This option may also be passed once to \fBx\fR (extract).  In this case the
       86 +program will \fBchdir\fR to \fIdirectory\fR after opening the archive, but
       87 +before extracting its contents.
  84   88  .RE
  85   89  
  86   90  .sp
  87   91  .ne 2
  88   92  .na
  89   93  \fB\fB\(miI\fR \fIinclude-file\fR\fR
  90   94  .ad
  91   95  .sp .6
  92   96  .RS 4n
  93   97  Opens \fIinclude-file\fR containing a list of files, one per line, and treats
↓ open down ↓ 1175 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX