Copying files and directories in Linux can be easily accomplished using the cp command, which stands for copy (shocker, I know). The cp command takes two arguments, the file or directory to copy and the path to where you want it copied to. It will then copy that file or directory to the path specified at the command line, in the same way you might expect it to work on any operating system you’ve used before. But did you know there are some additional tricks that make copying files in Linux a breeze? Copy Files and Directories in Linux in 3 Easy Steps
Create a directory. mkdir works by calling mknod with a first argument of d and a second argument of whatever name you want to give your new directory. This will create an empty directory at whatever location you specify.
The cp command stands for copy. Using cp, you can easily copy files or directories from one location to another on your server.
A handy command to use when moving files from one directory to another is mv. The abbreviation stands for move, and it works very much like cp except that it actually renames a file instead of copying a copy. It has a companion, rm, which removes (deletes) a file or directory.