home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Gthorne / reopsahl / gzip&tar.txt < prev    next >
Encoding:
Text File  |  2000-05-25  |  4.7 KB  |  128 lines

  1. IMPORTANT ADDED NOTE:
  2.  
  3. files.tgz are really filez.tar.gz
  4. gzip -d them first and then tar -xvf them to decompress
  5.  
  6. - - -
  7.  
  8. TO USE GZIP
  9.  
  10. to compress a .gz file
  11.  
  12.    gzip filename.gz <files to add to archive>
  13.  
  14. to decompress a .gz file:
  15.  
  16.    gzip -d filename.gz
  17.  
  18.  
  19. TO USE TAR
  20.  
  21. to decompress a .tar file:
  22.  
  23.    tar -xvf filename.tar
  24.  
  25. other data for TAR (excerpt from tar.man manual page):
  26.  
  27. - - -
  28.  
  29. NAME
  30.      tar - process tape archives
  31.  
  32. SYNOPSIS
  33.      tar -c[bfvw] device block filename...
  34.      tar -r[bvw] device block [filename...]
  35.      tar -t[fv] device
  36.      tar -u[bvw] device block
  37.      tar -x[flmovw] device [filename...]
  38.  
  39. DESCRIPTION
  40.      Tar reads and writes archive files which conform to the
  41.      Archive/Interchange File Format specified in IEEE Std.
  42.      1003.1-1988.
  43.  
  44.      Options
  45.      The following options are available:
  46.  
  47.      -c        Creates a new archive; writing begins at the
  48.                beginning of the archive, instead of after the
  49.                last file.
  50.  
  51.      -r        Writes names files to the end of the archive.
  52.  
  53.      -t        Lists the names of all of the files in the
  54.                archive.
  55.  
  56.      -u        Causes named files to be added to the archive if
  57.                they are not already there, or have been modified
  58.                since last written into the archive.  This implies
  59.                the -r option.
  60.  
  61.      -x        Extracts named files from the archive.  If a named
  62.                file matches a directory whose contents had been
  63.                written onto the archive, that directory is recur-
  64.                sively extracted.  If a named file in the archive
  65.                does not exist on the system, the file is create
  66.                with the same mode as the one in the archive,
  67.                except that the set-user-id and get-group-id modes
  68.                are not set unless the user has appropriate
  69.                privileges.
  70.  
  71.      If the files exist, their modes are not changed except as
  72.      described above.  The owner, group and modification time are
  73.      restored if possible.  If no filename argument is given, the
  74.      entire contents of the archive is extracted.  Note that if
  75.      several files with the same name are in the archive, the
  76.      last one will overwrite all earlier ones.
  77.  
  78.      -b        Causes tar to use the next argument on the command
  79.                line as the blocking factor for tape records.  The
  80.                default is 1; the maximum is 20.  This option
  81.                should only be used with raw magnetic tape
  82.                archives.  Normally, the block size is determined
  83.                automatically when reading tapes.
  84.  
  85.      -f        Causes tar to use the next argument on the command
  86.                line as the name of the archive instead of the
  87.                default, which is usually a tape drive.  If - is
  88.                specified as a filename tar writes to the standard
  89.                output or reads from the standard input, whichever
  90.                is appropriate for the options given.  Thus, tar
  91.                can be used as the head or tail of a pipeline.
  92.  
  93.      -l        Tells tar to report if it cannot resolve all of
  94.                the links to the files being archived.  If -l is
  95.                not specified, no error messages are written to
  96.                the standard output.  This modifier is only valid
  97.                with the -c, -r and -u options.
  98.  
  99.      -m        Tells tar not to restore the modification times.
  100.                The modification time of the file will be the time
  101.                of extraction.  This modifier is invalid with th
  102.                -t option.
  103.  
  104.      -o        Causes extracted files to take on the user and
  105.                group identifier of the user running the program
  106.                rather than those on the archive.  This modifier
  107.                is only valid with the -x option.
  108.  
  109.      -v        Causes tar to operate verbosely.  Usually, tar
  110.                does its work silently, but the v modifier causes
  111.                it to print the name of each file it processes,
  112.                preceded by the option letter.  With the -t
  113.                option, v gives more information about the archive
  114.                entries than just the name.
  115.  
  116.      -w        Causes tar to print the action to be taken, fol-
  117.                lowed by the name of the file, and then wait for
  118.                the user's confirmation.  If a word beginning with
  119.                y is given, the action is performed.  Any other
  120.                input means "no".  This modifier is invalid with
  121.                the -t option.
  122.  
  123. FILES
  124.      /dev/tty  used to prompt the user for information when the
  125.                -i or -y options are specified.
  126.  
  127. +gthorne'97
  128.