cp (Unix)

From Wiki @ Karl Jones dot com
Jump to: navigation, search

cp is a Unix command for copying files and directories.

Description

The command has three principal modes of operation, expressed by the types of arguments:

  • Copying a file to another file
  • Copying one or more files to a directory
  • Copying entire directories to another directory

The utility further accepts various command line option flags to detail the operations performed.

The two major specifications are POSIX cp and GNU cp.

GNU cp has many additional options over the POSIX version.

See also

External links