Default CP behavior?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Default CP behavior?

Post 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/
sheila
Forum Commoner
Posts: 98
Joined: Mon Sep 05, 2005 9:52 pm
Location: Texas

Post by sheila »

Has cp been aliased to include the -i switch?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
Post Reply