Cp-copy file or directory-r recursive copy directory, and copy all files under the Directory to the target location-d copy to keep the file link-f overwrite existing files, do not give a prompt-I copy prompt, and ask when copying we can be the same... news & nbsp;
Cp-copy file or directory
-R: recursively copy the directory and copy all the files in the directory to the target location.
-D maintain the File link during copy.
-F if the existing file is overwritten, no prompt is given.
-I prompt when copying and ask
We can change the name of a copy at the same time. for example, we can write cp-r/myfile
/Test/wode
Mv-move or rename a file
-I. If the same file exists, check whether the file is overwritten.
-F if the same file exists, the file is not overwritten.
Move the same file to the original directory and change the name, that is, rename the file instead of moving it.
Rm-remove delete a file or directory
-F ignores non-existing files and does not prompt
-I. ask before deleting the directory.
-D. delete the directory.
This command should be used with caution. if there is no Recycle bin in Linux, it will be deleted.
Cat-concatenate and displayfiles display file content
-B numbers all non-empty output rows starting from 1
-N: Number of all output rows starting from 1
-S combines multiple adjacent empty rows into one empty row
More display file content by page
-Num: sets an integer to indicate the number of rows displayed on a screen.
-C or-p: clear the screen before displaying the next screen
-D. a prompt is displayed at the bottom.
The head displays several lines at the beginning of the file on the screen.
-C bytes = SIZE: display the first SIZE characters
-N lines = NUMBER: specifies the NUMBER of rows to be displayed. the default value is 10.
-Q: The file title is not displayed.
-V always displays the file title
From: Meng Xiangyue's column