Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(1)

cpio(1)

ln(1)

mv(1)

rm(1)



  cp(1)                               CLIX                               cp(1)



  NAME

    cp - Copies files

  SYNOPSIS

    cp file1 [file2 ... ] target

  DESCRIPTION

    The cp command copies file1 to target.  Under no circumstance can file1
    and target be the same (take care when using shell metacharacters).  If
    target is a directory, then one or more files are copied to that
    directory.  If target is a file, its contents are destroyed.

    When using cp, if target is not a file, a new file is created which has
    the same mode as file1, except that the sticky bit is not set unless you
    are superuser; the owner and group of target are those of the user.  If
    target is a file, copying a file into target does not change its mode,
    owner, or group.  The last modification time of target (and last access
    time, if target did not exist) and the last access time of file1 are set
    to the time the copy was made.  If target is a link to a file, all links
    remain and the file is changed.

  EXAMPLES

    1.  The following copies the file /usr/adm/pacct to /usr/wombat/acct.temp:

        cp /usr/adm/pacct /usr/wombat/acct.temp


    2.  The following copies the file /usr/adm/pacct to the current directory:

        cp /usr/adm/pacct .


  DIAGNOSTICS

    If a copy of several files is attempted, and target is not a directory,
    this message is displayed:

    Target must be directory.

    If one of the source files for cp does not exist, this message is
    displayed:

    cannot access ______.


  EXIT VALUES




  2/94 - Intergraph Corporation                                              1






  cp(1)                               CLIX                               cp(1)



    This command exits with a value of 2 if a problem is encountered.

  RELATED INFORMATION

    Commands:  chmod(1), cpio(1), ln(1), mv(1), rm(1)

















































  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026