cp (Unix)
Cp is a command for input on a Unix shell to copy files on a computer in the Unix operating system and its derivatives (eg Linux).
The syntax is very simple; usually a file of source file is copied to target file, in which one
Cp [options ] source- file target- file enters. Multiple files can be copied, in which all file names are specified, then the destination directory:
Cp [options ] source- file target-directory ... Thus, for example, the use of wildcards is possible to usually ask what modern Unix shells available. so copied
Cp picture *. jpg target / For example, the files bild1.jpg, bild234.jpg or bild_abc.jpg target in the directory when the shell used the wildcard * is expanding.
Network-capable alternatives
From the traditional Unix tool, some programs have developed, copy the files over the computer network from a Unix machine to another and lean on it in their syntactic use strongly of the cp program.
Rcp, ssh
An extension of the cp program is the rcp program, which was created for use in networks ( remote copy ).
The syntax is:
Rcp
rsync
When it comes to balance two directories and only copy changes, rsync is a widely used substitute for the cp command. It can be used both local and over the network. When copying over the network encryption are performed with SSH.