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

1) mkdir


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.

2) cp


The cp command stands for copy. Using cp, you can easily copy files or directories from one location to another on your server.

See also  Is Google Calendar really the best way to track your sleep?

3) mv


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.

Copy Files and Directories in Linux in 3 Easy Steps
Copy Files and Directories in Linux in 3 Easy Steps

1 2 3 4 5

By High Tech Team

We’re dedicated to providing you the best of Technology , with a focus on dependability and Tech , Share Market , Networking . We’re working to turn our passion for Technology into a booming https://dudehightech.com. We hope you enjoy our Technology as much as we enjoy offering them to you