So a one-line summary is

When the target can be delete, unlink and rm -f are the same;
otherwise, unlink will complain about the error and exit with 1, but
rm -f will do neither.

On 1/29/20, Kaz Kylheku (Coreutils) <962-396-1...@kylheku.com> wrote:
> On 2020-01-29 01:45, Peng Yu wrote:
>> Hi,
>>
>> It seems to me unlink and rm -f are the same if the goal is the delete
>> files. When are they different? Thanks.
>
> I answered this on Unix Stackexchange in 2016:
>
> https://unix.stackexchange.com/a/326711/16369
>
> :)
>


-- 
Regards,
Peng

Reply via email to