RE: overwriting a file

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

 



On Mon, 2003-12-08 at 11:35, Henry Hartley wrote:
> >> -----Original Message-----
> >> From: Genti A. Hila [mailto:genti_tek4@xxxxxxxxxxx] 
> >> Sent: Monday, December 08, 2003 11:06 AM
> >> 
> >> When i copy a file to another location and that file exist
> >> there already there is a promts that asks for overwriting.
> >> How can i skip the prompt
> >> 
> >> cp /var/named/named.run /var/named/named.save
> 
> how about:
> 
> cp --reply=yes /var/named/named.run /var/named/named.save
> 
> --
> Henry Hartley
> 
Do you have cp aliased to "cp -i"? If so that is the problem.

Also examine the permissions on the destination file and destination
directory. The "-f" option will take care of some of these problems.

-- 
Graham Campbell <gc1111@xxxxxxxxxxxxx>




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

  Powered by Linux