Re: cp command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 18 July 2006 00:29, Kaushal Shriyan wrote:
> Hi ALL
>
> if i will run following command
>
> cp /home/deep /home/deepak
>
> if deep folder have same 100 files which is under /home/deepak it
> will ask permission for overwrite
>
> i have to enter y 100 times. how can i forcefully over write the
> files?
>

I gather you're doing this logged in as root? If so, this is due to 
an alias for the 'cp' command.  If you type:

---------
#which cp
---------

you can see that it defaults to using the "-i" parameter as it will 
display this:

----------------
alias cp='cp -i'
        /bin/cp
----------------

If you don't want that to happen ( the aliasing ) you can specify 
the full path to the 'cp' command; i.e.

--------------------
#/bin/cp file1 file2
--------------------

or use the "--reply" parameter as others have suggested.


Regards, Mike Klinke
  


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux