home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / man / manpages.zoo / cp.1 < prev    next >
Encoding:
Text File  |  1991-11-11  |  4.8 KB  |  199 lines

  1.  
  2.  
  3.  
  4. CP(1L)                                                     CP(1L)
  5.  
  6.  
  7.  
  8. NAME
  9.      cp - copy files
  10.  
  11. SYNOPSIS
  12.      cp [options] source dest
  13.      cp [options] source... directory
  14.      Options:
  15.      [-abdfilprsuvxPR] [-S backup-suffix] [-V
  16.      {numbered,existing,simple}] [+backup] [+no-dereference]
  17.      [+force] [+interactive] [+one-file-system] [+preserve]
  18.      [+recursive] [+update] [+verbose] [+suffix=backup-suffix]
  19.      [+version-control={numbered,existing,simple}] [+archive]
  20.      [+path] [+link] [+symbolic-link]
  21.  
  22. DESCRIPTION
  23.      This manual page documents the GNU version of cp.  If the
  24.      last argument names an existing directory, cp copies each
  25.      other given file into a file with the same name in that
  26.      directory.  Otherwise, if only two files are given, it
  27.      copies the first onto the second.  It is an error if the
  28.      last argument is not a directory and more than two files are
  29.      given.  By default, it does not copy directories.
  30.  
  31.      OPTIONS
  32.  
  33.      -_✓a, +_✓a_✓r_✓c_✓h_✓i_✓v_✓e
  34.           Preserve as much as possible of the structure and
  35.           attributes of the original files in the copy.  The same
  36.           as -_✓d_✓p_✓R.
  37.  
  38.      -_✓b, +_✓b_✓a_✓c_✓k_✓u_✓p
  39.           Make backups of files that are about to be overwritten
  40.           or removed.
  41.  
  42.      -_✓d, +_✓n_✓o-_✓d_✓e_✓r_✓e_✓f_✓e_✓r_✓e_✓n_✓c_✓e
  43.           Copy symbolic links as symbolic links rather than copy-
  44.           ing the files that they point to, and preserve hard
  45.           link relationships between source files in the copies.
  46.  
  47.      -_✓f, +_✓f_✓o_✓r_✓c_✓e
  48.           Remove existing destination files.
  49.  
  50.      -_✓i, +_✓i_✓n_✓t_✓e_✓r_✓a_✓c_✓t_✓i_✓v_✓e
  51.           Prompt whether to overwrite existing regular destina-
  52.           tion files.
  53.  
  54.      -_✓l, +_✓l_✓i_✓n_✓k
  55.           Make hard links instead of copies of non-directories.
  56.  
  57.      -_✓P, +_✓p_✓a_✓t_✓h
  58.           Form the pathname of each destination file by appending
  59.           to the target directory a slash and the pathname of the
  60.  
  61.  
  62.  
  63. Page 1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CP(1L)                                                     CP(1L)
  71.  
  72.  
  73.  
  74.           source file.  The last argument given to cp must be the
  75.           name of an existing directory.  For example, the com-
  76.           mand `cp +path a/b/c existing_dir' copies the file
  77.           _✓a/_✓b/_✓c to _✓e_✓x_✓i_✓s_✓t_✓i_✓n_✓g__✓d_✓i_✓r/_✓a/_✓b/_✓c, creating any missing
  78.           intermediate directories.
  79.  
  80.      -_✓p, +_✓p_✓r_✓e_✓s_✓e_✓r_✓v_✓e
  81.           Preserve the original files' owner, group, permissions,
  82.           and timestamps.
  83.  
  84.      -_✓r   Copy directories recursively, copying all non-
  85.           directories as if they were regular files.
  86.  
  87.      -_✓s, +_✓s_✓y_✓m_✓b_✓o_✓l_✓i_✓c-_✓l_✓i_✓n_✓k
  88.           Make symbolic links instead of copies of non-
  89.           directories.  All source files must be absolute path-
  90.           names (starting with `/') unless the destination files
  91.           are in the current directory.
  92.  
  93.      -_✓u, +_✓u_✓p_✓d_✓a_✓t_✓e
  94.           Do not copy a nondirectory that has an existing desti-
  95.           nation with the same or newer modification time.
  96.  
  97.      -_✓v, +_✓v_✓e_✓r_✓b_✓o_✓s_✓e
  98.           Print the name of each file before copying it.
  99.  
  100.      -_✓x, +_✓o_✓n_✓e-_✓f_✓i_✓l_✓e-_✓s_✓y_✓s_✓t_✓e_✓m
  101.           Skip subdirectories that are on different filesystems
  102.           from the one that the copy started on.
  103.  
  104.      -_✓R, +_✓r_✓e_✓c_✓u_✓r_✓s_✓i_✓v_✓e
  105.           Copy directories recursively.
  106.  
  107.      -_✓S, +_✓s_✓u_✓f_✓f_✓i_✓x _✓b_✓a_✓c_✓k_✓u_✓p-_✓s_✓u_✓f_✓f_✓i_✓x
  108.           The suffix used for making simple backup files can be
  109.           set with the SIMPLE_BACKUP_SUFFIX environment variable,
  110.           which can be overridden by this option.  If neither of
  111.           those is given, the default is `~', as it is in Emacs.
  112.  
  113.      -_✓V, +_✓v_✓e_✓r_✓s_✓i_✓o_✓n-_✓c_✓o_✓n_✓t_✓r_✓o_✓l {_✓n_✓u_✓m_✓b_✓e_✓r_✓e_✓d,_✓e_✓x_✓i_✓s_✓t_✓i_✓n_✓g,_✓s_✓i_✓m_✓p_✓l_✓e}
  114.           The type of backups made can be set with the
  115.           VERSION_CONTROL environment variable, which can be
  116.           overridden by this option.  If VERSION_CONTROL is not
  117.           set and this option is not given, the default backup
  118.           type is `existing'.  The value of the VERSION_CONTROL
  119.           environment variable and the argument to this option
  120.           are like the GNU Emacs `version-control' variable; they
  121.           also recognize synonyms that are more descriptive.  The
  122.           valid values are (unique abbreviations are accepted):
  123.  
  124.           `t' or `numbered'
  125.                Always make numbered backups.
  126.  
  127.  
  128.  
  129. Page 2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. CP(1L)                                                     CP(1L)
  137.  
  138.  
  139.  
  140.           `nil' or `existing'
  141.                Make numbered backups of files that already have
  142.                them, simple backups of the others.
  143.  
  144.           `never' or `simple'
  145.                Always make simple backups.
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195. Page 3
  196.  
  197.  
  198.  
  199.