Copy file

Last update in 1/2020

If you want to copy file on Unix system you can use simple, built-in command cp.

To copy file_1 in file_2 run following command.

cp file_1 file_2

Copying multiple files in directory works the same way.

cp file_1 file_2 directory_1

Useful flags for command cp:

Note that this only works with files. View how to copy directories here.