bash: copying files without prompt

It can be annoying that the ‘cp’ command keep prompting if you are to overwrite some files. This is due the cp alias. To fix that,

unalias cp
cp -af source target

done.

Like it.? Share it:
Tags:

One Response to bash: copying files without prompt

  1. jobst

    Bernard

    you can do that quicker, just put a slash in front and it will unalias:

    \cp source target

    it will not ask you.