Llinux Copy Move command

Source: Internet
Author: User
CP (copy) file Copy command

cp 命令 参数:                                 -i       复制一个文件到一个目录时遇到相同文件时询问是否覆盖                                -a       复制目录时保留链接,文件属性,并递归复制                                -d       复制时保留链接                                -f        删除已经存在的目标文件而不提示                                -p       复制除源文件的内容外,并将其修改时间和访问权限也复制到新文件中                                -r        复制目录时将该目录下所有的子目录和文件,但目标文件必须是 一个目录名

mv Command Move rename :

                                -i       移动文件时如果出现相同文件时提示                                mv file1.txt  ./ 单个文件fuzhi                                mv file1.txt file2.txt  ./  将多个文件复制当前目录                                mv a a1 将文件a 改为 a1

A rookie, a wish. Designation of the Great God

Llinux Copy Move command

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.