Re: cp -f option
Re: cp -f option
- Subject: Re: cp -f option
- From: email@hidden (Peter Seebach)
- Date: Tue, 10 Oct 2006 18:33:03 -0500
In message <C15179E2.49BE8%email@hidden>, Jeffrey Ellis writes:
>Sorry for being dense. Not sure I understand exactly what this does. Can
>someone explain this...?
>
> -f For each existing destination pathname, remove it and create a new
> file, without prompting for confirmation regardless of its
>permissions.
>
>Doesn't cp do this by default unless you use -i or -n ...which this
>overrides?
No.
$ cd /tmp
$ cp /dev/null t
$ chmod 600 t
$ cp /dev/null t
$ chmod 0 t
$ cp /dev/null t
cp: t: Permission denied
$ cp -f /dev/null t
$
-s
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >cp -f option (From: Jeffrey Ellis <email@hidden>) |