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

Re: cp -f still prompts - why?



Jerry Winegarden <jbw duke edu> writes:

> RH 7.0,
> 	cp -f foo1 foo2		still prompts if I want to overwrite foo2
> 				if it already exists.
> 
> According to the man page, --force  "never prompts"
> 
> Same behavior on two different systems.
> Why?

Because "cp" is aliased to "cp -i", so you're effectively running

cp -i -f foo1 foo2

To get rid of the annoying messages for rm, cp and mv,  just remove the aliases from root's .bashrc

-- 
Trond Eivind Glomsrød
Red Hat, Inc.





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