cp
Copy files.
Signature
> cp (source) (destination) --recursive --verbose --interactive --no-dereference
Parameters
source
: the place to copy fromdestination
: the place to copy to--recursive
: copy recursively through subdirectories--verbose
: do copy in verbose mode (default:false)--interactive
: ask user to confirm action--no-dereference
: If the -r option is specified, no symbolic links are followed.
Examples
Copy myfile to dir_b
> cp myfile dir_b
Recursively copy dir_a to dir_b
> cp -r dir_a dir_b
Recursively copy dir_a to dir_b, and print the feedbacks
> cp -r -v dir_a dir_b
Move many files into a directory
> cp *.txt dir_a