Linux-cp-mv-rm

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.