CP [OPTION] ... [-T] SOURCE DEST
CP [OPTION] ... SOURCE ... DIRECTORY
CP [OPTION] ...-t DIRECTORY SOURCE ...
CP SRC DEST    SRC is a file: If Dest does not exist, copy src to dest if dest exists If Dest is a file, overwrite if Dest is a directory, Copy src to dest and keep original cp src... dest if SRC is a file and more than one, then dest must be a directory If there is a directory in SRC, use the-r option (cp -r src... dest) -P: Copy the symbolic link file itself, Instead of the target file it points to -p (--preserve=all): --preserve=mode,ownership,timestamps or--preserve=all --preserve[=attr_list] mode: Permissions ownership: owner, Group timestamps: Timestamp -a (--archive): -dr --preserve=all -d: Copy the destination file that the symbolic link file points to -R: recursive replication -i: Interactive -f: Enforcement
MV Command
MV Src ... dest-i: interactive
RM command
RM [OPTION] ... File...-i:interactive-f: force-r/-r: Recursive--no-preserve-root
If you enter the interactive mode incorrectly, you can correct the re-entry in the following way
Full Screen editor Nano
#nano写入内容 Ctrl+o Enter file name--Enter ctrl+x save exit
Text-Processing class commands
#wc-L-w-c file#cut-d (delimiter)-F (reserved field)-f1,7-f1-7
#sort [OPTION] ... [FILE] ...-f: ignore the case of character-T: Specify delimiter-K: Specifies the field to be compared after the column-N: Sort by numeric Size-u: Sort after to reset
#uniq-D: Show only duplicate Rows-u: Show only non-repeating rows-C: Shows the number of occurrences of each row
Linux-cp-mv-rm