What is $RECYCLE.BIN in MAC?

I had a directory called $RECYCLE.BIN which I did not create. I deleted it accidentally and as result all other directories beside it was removed too.

This is what happened in the terminal:

b@thebeast ~/Downloads]$ ls
$RECYCLE.BIN
Note.txt
Objective-C Essential Training
[ben@thebeast ~/Downloads]$ rm -r $RECYCLE.BIN
[ben@thebeast ~/Downloads]$ ls
[ben@thebeast ~/Downloads]$

Does anybody have had the same experience or know what is special about this $RECYCLE.BIN?


The shell running in Terminal uses $ to identify variables. So if you want to remove or edit (or reference in general) a file whose name contains a $ you need to protect/escape it

rm -r \$RECYCLE.BIN
vi SYS\$OUT.txt

As the variable $RECYCLE most probably didn't exist, the variable got replaced by "nothing" in your case resulting in

rm -r .BIN

being run. This still doesn't fully explain what happened though because all you should have gotten is a rm: .BIN: No such file or directory error.


Were you running Parallels Desktop with a Windows Virtual Machine?

These folders are created if you are using the Shared Folders feature in Parallels Desktop. You can disable it in Virtual Machine -> Configure -> Shared Folders.

These folders can be safely deleted if you don't care about their contents.


$RECYCLE.BIN is a hidden folder on Windows systems. It's the Recycle Bin, as you may have guessed. Did you by chance use this disk in a Windows machine at some time? That would explain how it arrived on the disk. Since it's in your Downloads folder, it's more likely that it was accidentally included with a .zip file that you extracted.