RM(1) >>>>>>>>>> >>>>>>> RM(1)
>>>>>
rm - remove files or directories
>>>>
rm [>>>>>>]... [>>>>>>>>]...
>>>>
This manual page documents the GNU version of rm. rm removes each
specified file. By default, it does not remove directories.
If the -I or --interactive=once option is given, and there are more
than three files or the -r, -R, or --recursive are given, then rm
prompts the user for whether to proceed with the entire operation. If
the response is not affirmative, the entire command is aborted.
Otherwise, if a file is unwritable, standard input is a terminal, and
the -f or --force option is not given, or the -i or
--interactive=always option is given, rm prompts the user for whether
to remove the file. If the response is not affirmative, the file is
skipped.
>>>>>>
>>>>>> (>>>>>>>>>)
>>>>>>>>.
-f, --force
>>>>>>>>>> >>>>>>>>>>>
>>>>>>>> > >>>>>>>>>,
>>>>>> >> >>>>>>>> >>>>
-i >>>>>>>> >>>> >>>
>>>>>> >>>>>>>>
-I >>>> >>>>>> >>>
>>>>>>>> >>>> >> >>>
>>>>>>>>, >>> >>>>
>>>>>> >>>>>>>>; >>>> >>
>>>>>>> >> -i, >>> >>>
>>>> >>>>> >>>>>>>
>>>>>> >>>>>> >>>>>>>
--interactive[=>>>>]
>>>> > >>>>>> >> >>>>:
,,never" -- >>>>>>, ,,once" (-I) --
>>>>>>, >>> ,,always" (-i) -- >>>>;
>>> >>>>, >>>> >>>>
--one-file-system
>>>> >>>>>>>> >>>>>>
>>>>>>>>>>>, >>>>>>>>
>>> >>>>>>>>>>>>> >>>>
>> >> >>>>>>> >>>>>>>>
>>>>>>>>>> >> >>>>
>>>>>>>>>>>>>
>>>>>>>>> >>>>>>
>>>>>>>
--no-preserve-root
>> >>>>>>>> ,,/" >>>>>>>>
--preserve-root[=all]
>> >>>>>> ,,/" (>>>>>>>); >>
,,all", >>>>>>>> >>>> >>>>
>>>>>>>> >>>>>>
>>>>>>> >> >>>>>>>>>>>
>>>>>>> >> >>>>>>>
>>>>>>>>
-r, -R, --recursive
>>>>>>>> >>>>>>
>>>>>>>>>>>>> > >>>>>>
>>>>>>>>
-d, --dir
>>>>>> >>>>>>
>>>>>>>>>>>>>
-v, --verbose
>>>>>>>>> >>> >>
>>>>>>>
--help >>>>>>>>> >>> >>>>> >
>>>>>>
--version
>>>>>>>> >>>>>>> >
>>>>>> > >>>>>>
>> >>>>>>, rm >> >>>>>>
>>>>>>>>>>>>>. >>>>>>>>>
--recursive (-r >>> -R) >> >>>>>>>>
>>>>> >>>>>>>>>
>>>>>>>>>>>>, >>>>>>, >>
>>>> >>>>>>> >>>>>>>>>>.
Any attempt to remove a file whose last file name component is '.' or
'..' is rejected with a diagnostic.
>> >>>>>>>> >>>>>>>> >>>>
>>>>> >>>>>> >> -, >> >>>>>>
,,-foo", >>>>>>>>> >>>>> >>
>>>> >>>>>>>:
rm -- -foo
rm ./-foo
If you use rm to remove a file, it might be possible to recover some of
its contents, given sufficient expertise and/or time. For greater
assurance that the contents are unrecoverable, consider using shred(1).
>>>>>
>>>>>>>> >> >>> >>>>>,
>>>>>> >>> >>>>>, >>>>>> >.
>>>>>>> > >>> >>>>>>>.
>>>>>>>>>>>> >>>>>>>
>>>>> >> >>>>> >> >>> coreutils:
>>>>>> > >>>>>>>
>>>>>>>>> >>
>>>>>>>> >>>>>
Copyright (C) 2024 Free Software Foundation, Inc. >>>>>>>
>>>>3+: >>> >>> >>>>>> 3 >>>
>>>>>>> .
>>> >> >>>>>>>> >>>>>>>:
>>>>>>>> >>> >> >> >>>>>> >
>>>>>>>>>>>>>. >> >>>>>>>
>>>>>>> >>>>>>>>>, >
>>>>>>>> >>>>>>>>>>
>>>>>>>.
>>>>>> >>>>>>
unlink(1), unlink(2), chattr(1), shred(1)
>>> >>>>>>>>>>>>> >>
>>>>>> >>
>>> >> >>>>>>>> >>
>>>>>>>> >>>>> >>>>>>> ,,info
'(coreutils) rm invocation'"
>>>>>>
>>>>>> >>>>>> >>>
>>>>>>>> >> >>>>>>>>>>>
>>> >>>>>>>>>
>>>> >>>>>> >> >>>>>>>>>
>>>>>>>>>>>>>; >> >>>>>>
>>>>>>>>> >>>>>
>>>>>>>>>> >>> >>>>>
>>>>> >>>>>>> >>>>>>> 3
>>>
>>>>>>. >> >>>>>>>>>>
>>>>>>> >>>>>>>>>>>.
>>> >>>>>>>>> >>>>>> >
>>>>>>> >>> >>>>>>>>
>>>>>>>>>>, >>>>>>>>
>->>>>>> TODO <>.
>>> coreutils 9.5 >>>>> 2024 RM(1)