Skip to content

copy

Usage
copy <source> <dest>

Wrapper for cp that strips trailing slashes from source directories, preventing unwanted nested copies when the destination already exists.

source Source file or directory
dest Destination path
Terminal window
copy ./mydir/ ~/backup
copy ./mydir/ ~/backup # copies mydir INTO backup, not backup/mydir/

Classification: bypasses-shadow(cp)