When I copy something, I always forget the -R
, then I have go all the way back to add it right after cp
.
I want to add this to bash config files.
alias cp="cp -R"
I have not seen anything bad happen. Is it safe to do this?
The only thing I can think of that would cause unexpected behavior with the -R
flag is that it doesn't work with wildcards.
What I mean is... for example you want to copy all mp3 Files in a directory and every subdirectory with: cp -R /path/*.mp3
. Although -R
is given it will not copy mp3s in the subdirectories of path
- if there are any.