Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does rf in rm -rf stand for?

Tags:

terminal

unix

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?

like image 551
AdamNYC Avatar asked Jan 26 '13 22:01

AdamNYC


2 Answers

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 
like image 127
Gilles Quenot Avatar answered Nov 10 '22 01:11

Gilles Quenot


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

like image 29
flavian Avatar answered Nov 10 '22 03:11

flavian