Files and folders can be copied under the GUI. The following is a convenient terminal command line operation:
①Command: cp original file.txt (file type) target folder name/ copy the file to the target folder
The file can be copied to the current directory of the file (that is, its same-level directory), but the file needs to be renamed. The command is as follows:
②Command: cp the original file.txt the new name of the original file.txt/ (the contents of the two files are the same)
③Command: cp -r original folder name target folder name/ (copy of folder)
There is also a special copy, assuming that there are both md files and txt files in a folder, so now only all files of one type (md) are required to be copied to the target folder, and the implementation command is as follows:
④Command: cp original folder name/*.md target folder name/ (* stands for all)