What does rf in rm -rf stand for?

UnixTerminal

Unix Problem Overview


What does rf in rm -rf in Unix stand for?

More generally, I have a hard time remembering Unix commands and options because I don't understand what they stand for. Is there a resource that explain the meaning of these shorthands?

Unix Solutions


Solution 1 - Unix

In rm,

  • -r stands for recursive
  • -f stands for force

Doc :

man rm

said :

> -f, --force > ignore nonexistent files and arguments, never prompt >
>
> -r, -R, --recursive > remove directories and their contents recursively

Solution 2 - Unix

rm means remove

r means recursive, which you have to use when removing an entire folder f means force removal

combined, rm -rf someDirectory means force the recursive removal of someDirectory

Solution 3 - Unix

-r
> Recursively removes directories and subdirectories in the argument list. The directory will be emptied of files and removed. The user is normally prompted for removal of any write-protected files which the directory contains. The write-protected files are removed without prompting, however, if the -f option is used, or if the standard input is not a terminal and the -i option is not used.

Solution 4 - Unix

I believe it is recursive force

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAdamNYCView Question on Stackoverflow
Solution 1 - UnixGilles QuenotView Answer on Stackoverflow
Solution 2 - UnixflavianView Answer on Stackoverflow
Solution 3 - UnixvinothView Answer on Stackoverflow
Solution 4 - UnixplasticideView Answer on Stackoverflow