74 lines
2.1 KiB
HTML
74 lines
2.1 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>tar(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>tar(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
tar - tape archiver
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>tar</STRONG> [<STRONG>Fcotvxp</STRONG>] [<STRONG>f</STRONG>] <EM>tarfile</EM> <EM>file</EM> ...
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>F</STRONG> Force tar to continue after an error
|
|
|
|
<STRONG>c</STRONG> Create a new archive; add named files
|
|
|
|
<STRONG>o</STRONG> Set uid/gid to original values on extraction
|
|
|
|
<STRONG>f</STRONG> Next argument is name of tarfile
|
|
|
|
<STRONG>t</STRONG> Print a table listing the archive's contents
|
|
|
|
<STRONG>v</STRONG> Verbose mode-tell what is going on as it happens
|
|
|
|
<STRONG>x</STRONG> The named files are extracted from the archive
|
|
|
|
<STRONG>p</STRONG> Restore file modes, ignore creation mask
|
|
|
|
<STRONG>D</STRONG> Directory only, do not recurse
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>tar</STRONG> <STRONG>c</STRONG> <STRONG>/dev/fd1</STRONG> <STRONG>.</STRONG> # Back up current directory to /<EM>dev</EM>/<EM>fd1</EM>
|
|
|
|
<STRONG>tar</STRONG> <STRONG>xv</STRONG> <STRONG>/dev/fd1</STRONG> <STRONG>file1</STRONG> <STRONG>file2</STRONG>
|
|
# Extract two files from the archive
|
|
|
|
<STRONG>tar</STRONG> <STRONG>cf</STRONG> <STRONG>-</STRONG> <STRONG>|</STRONG> <STRONG>(cd</STRONG> <STRONG>dest;</STRONG> <STRONG>tar</STRONG> <STRONG>xf</STRONG> <STRONG>-)</STRONG>
|
|
# Copy current directory to <EM>dest</EM>
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
<EM>Tar</EM> is a POSIX-compatible archiver, except that it does not use tape.
|
|
It's primary advantage over <EM>ar</EM> is that the <EM>tar</EM> format is somewhat more
|
|
standardized than the <EM>ar</EM> format, making it theoretically possible to
|
|
transport MINIX files to another computer, but do not bet on it. If the
|
|
target machine runs MS-DOS , try <EM>doswrite</EM> .
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/compress.1.html">compress(1)</A></STRONG>, <STRONG><A HREF="../man1/vol.1.html">vol(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|