PROGRAMS

cp (copy)

Article by:
Date Published:
Last Modified:

Overview

If you want to move or rename files (instead of copying), please checkout the mv command.

Copying A Single File

This is the simplest cp procedure:

1
$ cp ~/original_file.txt ~/copied_file.txt

Coping Multiple, Specific Files To A Directory

This can be done with the syntax:

1
$ cp ~/{file1,file2,file3,file4} ~/destination_folder/

Note that there must be no spaces between the comma-separated files.


Authors

Geoffrey Hunter

Dude making stuff.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .

Tags

    comments powered by Disqus