sudo rm vs. sudo rm -rf
I tried to delete my Documents folder using the sudo rm -rf Documents command in Terminal ( that's not exactly what I typed btw. Just for sake of explanation ) but instead of typing the correct sudo rm -rf line, I left out the -rf part and executed using sudo rm Documents. Couple of questions
1. What exactly did it do by typing in said command
2. I went back to use the correct line sudo rm -rf Documents and the Documents folder is deleted until I go back into Finder when the Documents folder pops back up again.
What I was trying to do was to create the Documents folder in my secondary HDD, delete the original Documents folder on my Boot Drive and create a Symlink to the Documents folder.
Thanks for any help and explanation.
p.s. my computer is running fine for now. I have tried rebooting and it boots fine. Just want to know what I did when I typed in said command.
MacBook Pro, OS X Yosemite (10.10.5)