How to Copy (and Paste) Files and Directories from Linux Command Line

Copying and pasting files is one of the most basic things you can do on a computer. On Linux, you have several options to get the job done. On the command line things are more direct, giving you more control, and in some cases, simplifying things dramatically. Copy a Single File Any time you want to copy a file or folder in the Linux command line, you’re going to use the cp command. cp is shorthand for copy. The syntax is simple, too. Use cp followed by the file you want to copy and… Read more