░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░
░░░░░░████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░
░░░░██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░
░░██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░
░░██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░
▒▒▒▒▒▒████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒██▒▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒██▒▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒████████▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████████▒▒▒▒▒▒
░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██████████░░
░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██████████░░
░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██████░░░░
░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████░░░░░░
░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░

cp

Cp can copy files and directories from one place to another.

Usage

To use cp type cp in a terminal with the file (or folder) as the first argument and the destination as the second argument. bash $ cp cat.png Pictures/

If you want to rename the file while copying you can add the file name to the destination like this. bash $ cp cat.png Pictures/cat2.png

You can move folders but you need one extra argument and that is -r, this stands for recursive. bash $ cp -r important_files Documents/

Maybe you want to copy all the files from one folder to another, in that situation you can use a wildcard or a star *. Wildcards can also be used to select specific filetypes or files with similar names. bash $ cp * ~/Documents/ $ cp *.jpg Pictures/ $ cp photo*.jpg Pictures/

CC BY-SA 4.0