com.ice.tar.tar
The com.ice.tar.tar program is used to test the com.ice.tar
package. You can use it to create tar archives, list the contents
of tar archives, and to extract the contents of tar archives. The
program attempts to emulate the standard tar program, however, this
emulation is very weak.
You invoke the program in one of three ways:
-
com.ice.tar.tar -c pathname [pathname...]
Create a new tar archive.
-
com.ice.tar.tar -t [options]
List the contents of a tar archive.
-
com.ice.tar.tar -x [options]
Extract the contents of a tar archive.
Options
- -c
- Create tar archive.
- -t
- List contents of tar archive.
- -x
- Extract contents of tar archive.
- -f filename
-
Sets the tar archive file to filename. If filename
is '-', then stdin or stdout is used, depending on whether
you are reading or writing the archive.
- -z
-
Indicates that the tar archive being read is GZIP-ed, or that
the archive being written should be GZIP-ed.
- -u userName
-
Sets the user name to use when creating an archive.
- -U userId
-
Sets the user id to use when creating an archive.
- -g groupName
-
Sets the group name to use when creating an archive.
- -G groupId
-
Sets the group id to use when creating an archive.
- -v
- Turns on verbose mode.
- --trans
- Turns on ascii translation flag. This will cause ascii text
files to have local line endings translated into UNIX line endings.
This translation will make the tar archive more "portable" with
respect to text files. The determination of whether a file is
ascii or not is done using the Java Activation MimeFileTypeMap
support. You can specify a MIME types file for this purpose
using the --mime option.
- --mime file
- Reads file for MIME types and turns on the ascii translation flag.
The tar command will also recognize combined option characters,
like the traditional tar. Therefore, '-xvfz arch.tar.gz' would
be acceptable parameters to the tar command.
$Id$
Authored By Timothy Gerard Endres, time@gjt.org
This work been placed into the public domain.