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.
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.
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
With a little more research I found the following:
rm
removes / delete:
-r
recursive (recursively): recursively deletes all directories/files that match.-f
force (force): force exclusion without considering confirmation.src: http://dustyreagan.com/how-to-delete-an-entire-directory-via-ssh/
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 linux apache shell
You are not signed in. Login or sign up in order to post.
Just to clarify the concept: the command
rm
is from the remote shell, just like thessh
is a command of your local shell.– bfavaretto
ssh
in case it would just be protocol, no?– Machado
@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.
– Bacco
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.
– Machado
don’t forget the old manual:
man rm
– JJoao