- To make a copy of a file type cp <file1> <file2>
(if <file2> already exists then it will be overwritten with
the contents of <file1>).
- To copy a file into another directory
type cp <file1> <dir_name>
- To copy the contents of one directory into another directory use the command:
cp -R <dir_name1> <dir_name2>. The option -R (we can also use -r) stands
for recursive since the first directory is recursively copied in to the second directory, that
is, all subdirectories inside the directory being copied are also copied recursively and so on.