What does rf in rm -rf stand for?
UnixTerminalUnix 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