命令 | 文件处理
  1. mv
  2. rm
  3. cp
    复制文件或文件夹。
    ```
    SYNOPSIS
    1. cp [OPTION]... [-T] SOURCE DEST
    2. cp [OPTION]... SOURCE... DIRECTORY
    3. cp [OPTION]... -t DIRECTORY SOURCE...

DESCRIPTION
Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

  1. Mandatory arguments to long options are mandatory for short options
  2. too.
  3. -a, --archive
  4. same as -dR --preserve=all
  5. --attributes-only
  6. don't copy the file data, just the attributes
  7. --backup[=CONTROL]
  8. make a backup of each existing destination file
  9. -b like --backup but does not accept an argument
  10. --copy-contents
  11. copy contents of special files when recursive
  12. -d same as --no-dereference --preserve=links
  13. -f, --force
  14. if an existing destination file cannot be opened, remove it and
  15. try again (this option is ignored when the -n option is also
  16. used)
  17. -i, --interactive
  18. prompt before overwrite (overrides a previous -n option)
  19. -H follow command-line symbolic links in SOURCE
  20. -l, --link
  21. hard link files instead of copying
  22. -L, --dereference
  23. always follow symbolic links in SOURCE
  24. ```