command for copying files in linux 1

command for copying files in linux

#cp filename DestinationPath# For Example:
cp book /home/kali/Desktop/

Here is what the above code is Doing:
1. We are using the cp command to copy the file book from the current directory to the Desktop directory.
2. The cp command is followed by the name of the file that we want to copy.
3. The name of the file is followed by the destination path.
4. The destination path is the path where we want to copy the file.
5. In this case, we are copying the file to the Desktop directory.

Similar Posts