[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the difference between unlink and rm -f?
From: |
Bernhard Voelker |
Subject: |
Re: What is the difference between unlink and rm -f? |
Date: |
Wed, 29 Jan 2020 15:39:11 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 1/29/20 10:45 AM, Peng Yu wrote:
It seems to me unlink and rm -f are the same if the goal is the delete
files. When are they different? Thanks.
Others have already answered, so I just want to mention the following
difference from a user's point of view:
Besides options to work with directories and directory hierarchies,
(-r, -d, -x), rm(1) supports more options which may be quite useful:
- the -i/-I/--interactive=WHEN family for prompting,
- the -v option to explain what is being done.
Have a nice day,
Berny