How To Copy Files In Linux Using Bash Shell

It’s easier than you think to copy files from one directory to another in Linux. In this snip, Bill will demonstrate how to use the Copy (cp) command.

There are three scenarios in this snip:

  • simple copy from source to destination This is the most common file management task.

  • update copy from source to destination This is a good parameter to use if you aren’t sure if the source files are newer than the destination files.

  • recursive copy from source to destination This parameter is used when you want to copy every folder and child object contained within.

An example of each command is available with this snip as a separate file.

Prerequisites include: - Linux OS with Bash shell / shell of your choice.