copy
Synopsis
Section titled “Synopsis”copy <source> <dest>Description
Section titled “Description”Wrapper for cp that strips trailing slashes from source directories, preventing unwanted nested copies when the destination already exists.
Arguments
Section titled “Arguments”source |
Source file or directory |
dest |
Destination path |
Example
Section titled “Example”copy ./mydir/ ~/backupcopy ./mydir/ ~/backup # copies mydir INTO backup, not backup/mydir/Classification: bypasses-shadow(cp)