[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rm] Order of parameters
From: |
Eric Blake |
Subject: |
Re: [rm] Order of parameters |
Date: |
Mon, 30 Nov 2015 20:34:44 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 11/30/2015 03:23 PM, Piotr Rogoża wrote:
> Hello
> I have question about order of parameters for command rm.
>
> $ ls -l test
> total 0
> -rw-r--r-- 1 user group 0 Nov 30 22:32 file
> $ rm -rfvi test
> $ rm -irfv test
Yes, it is intentional that whichever is last between -i and -f wins;
the two options are mutually exclusive, but do not cause a warning (so
that you can have an alias that does 'rm -i' by default but still issue
-f to your alias).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature