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/
Default CP behavior?
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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.sheila wrote:Has cp been aliased to include the -i switch?
If you look in those files which run when you log in you may notice some lines beginning with "alias". Remove them as necessary.