Page 1 of 1
Default CP behavior?
Posted: Thu Apr 27, 2006 6:35 am
by Benjamin
I'm not understanding why this command is asking me whether I want to overwrite files. According to man cp you have to explicitly tell cp to ask for overwrite with the i flag. I'm going to use it for a cron job. I am using Fedora 4.
cp -fr /files/to/backup /backup/location/
Posted: Thu Apr 27, 2006 9:09 am
by sheila
Has cp been aliased to include the -i switch?
Posted: Thu Apr 27, 2006 11:29 am
by Chris Corbyn
sheila wrote:Has cp been aliased to include the -i switch?
To extend on that... for a place to check if you're unsure try loggin into a console window and open up .bashrc and/or .bash_profile.
If you look in those files which run when you log in you may notice some lines beginning with "alias". Remove them as necessary.