I know this is probably common knowledge to Linux and Unix geeks. But every time I need to remove a directory with files in my NearlyFreeSpeech.Net SSH terminal I end up having to google for the command. So here it is for anyone else who’s out there googling!
rm -r -f YourDirectory
rm = remove / delete
-r = recursively deletes the directory and all files in it, including subdirectories
-f = will not ask for confirmation before deleting










geek tip: you can save another TWO WHOLE KEYSTROKES by doing “-rf” not “-r -f”
you can usually stack single letter options if they have no modifer ‘-rfaweqkv’ but you cant stack the “-u cool -p beans” or “–fullword” options
Good tip!
This is workiiiiiing. Thanks.
Finally thanks!!!
oh finallyyyyyyyyy.
thank you so much. I’ve tried numerous dif things and only this has help. Its a load off thanks.
Nice
Kudos for this, have been googling it
It worked. Thanks.
Totally worked, thanks so much!
LOVE IT ! Thanks guys !
Previously removing a magento installation via FTP = FAIL.
Currently removing a magento installation via SSH = WIN.
You sir, are a legend.
I googled and I found. Therefore I am.
Thanks for the tip for the non-linux geek.
Thanks man. I’m enjoying the power of SSH. saves me time.
thanks! googled it and found you 1st.
Works! Thanks. but can anybody tell me why its slow.