What does -Rf mean after rm?

Asked

Viewed 768 times

0

I have a command in SSH on the platform Magento (installed on a server Apache) to delete the contents of the cache folder rm -rf path/to/folder/* but I’m not really sure what -rf means.

  • 1

    Just to clarify the concept: the command rm is from the remote shell, just like the ssh is a command of your local shell.

  • ssh in case it would just be protocol, no?

  • 3

    @Machado the ssh executable of linux is the client of the SSH protocol, just as sshd is the executable of the SSH server. And the rm command is not an "ssh command". Locally you run the rm the same way. No need for ssh. And Magento has no connection to any of these things.

  • Magento is just the platform where the script is located. In a nutshell I am using events registered in the Cron of Cpanel to read a file with a set of these commands to clean up the briefcase cache of Magento. If you can then correct me as to my understanding, I thank you.

  • don’t forget the old manual: man rm

2 answers

3

-r recursive mode, i.e., removes the folder and subfolders and -f forcibly remove without asking the user

This command must be used carefully, can damage the entire system.

2


  • 1

    Oi Machado. I restored your answer because it adds content, and the edit you made in the other was too radical, and so it ended up rejected by the community. I thought it best not to lose the additional information you put in. It is okay to have more than one answer in the question; indeed, this is desirable.

  • Thanks for the explanation, users like that are the ones who make beginners like me want to delve into the community.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.