Name
tar
Synopsis
tar [options] [tarfile] [other-files]
Copy
files to or restore files
from an archive medium. If any files are
directories, tar acts on the entire subtree.
Options need not be preceded by - (though they may be). Note that
until native drivers for tape drives exist for Mac OS X,
tar cannot write to tape. Note also that
tar does not preserve resource forks or metadata
when copying files that contain them.
Function options
You must use exactly one of these, and it must come before any other options:
-
-c Create a new archive.
-
-r, u Append other-files to the end of an existing archive.
-
-t Print the names of other-files if they are stored on the archive (if other-files are not specified, print names of all files).
-
x Extract other-files from an archive (if other-files are not specified, extract all files).
Options
-
-b Set block size to 512 bytes.
-
-e If there is an error, stop.
-
-farch Store files in or extract files from archive
arch. The default is/dev/rst0. Since Mac OS X has no native tape drive support,tarproduces an error unless the-foption is used.-
-h Dereference symbolic links.
-
-m Do not restore file modification times; update them to the time of extraction.
-
-O Create non-POSIX archives.
-
-o Do not create archives with directory information that v7
tarwould not be able to decode.-
-p Keep ownership of extracted files the same as that of original permissions.
-
-sregex Using
ed-style regular expressions, change filenames in the archive.-
-v Verbose. Print ...