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  Whatsapp Bans 18.58 lakh Indian Accounts

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 Showz Update Team

We’re working to turn our passion for Movie Web Show And Game Updates into a booming Showz Update . We hope you enjoy our Movie Web Show And Game Updates as much as we enjoy offering them to you