This blog will explain the CP command and MV Command.
Copy file: CP (copy copy)
The function of the CP command is to copy the given file or directory to another file or directory, equivalent to the Copy command under DOS.
Common options description.
Using: CP b.txt zhuangge/, copy b.txt files to the Zhuangge folder, and the results are as follows.
Using: Cp-r boge zhuangge/, move directory boge to directory Zhuangge below, remember to use the-r option, otherwise the operation failed, the result is as follows.
Moving files: MV (move moves)
Users can use the MV command to move files or directories, or to rename files or directories.
Common Options Description:
Use: MV A.txt a_rename.txt, the file name of a txt file named A_rename.txt, showing the results are as follows:
Using: MV A_rename.txt boge/, the file name A_rename.txt files are cut and copied to the Boge folder, showing the following results.