Stop being prompted when copying files in Linux

Copy FilesThe other day I saw someone who was copying files within Linux.  Whenever he was copying the files he was being asked do you want to overwrite the file.  He asked if the there was a flag he could use to stop the from happening.  I mentioned he may want to use the -f flag for force.

After a quick interruption, I noticed he was still pressing y for each file, as he mentioned the -f did not work he will still being prompted.

Another place to look if this is still occurring is to look at the aliases setup for the profile, sure enough when he type alias there was an alias for cp which was set to cp -i.  Once he unaliased the cp he then move the 100 plus files he was trying to move.

I am always interested in feedback so please feel free to add any comments, or you can mail me  here.  If you would like to submit a quick tip  with full credit and links back to your site then also feel free to contact me.

Related Posts Plugin for WordPress, Blogger...

Keyboard Shortcuts on your Mac

Quick way to open links on your Mac