Cause

While trying to install a driver for the DW1820A wireless network card on a hackintosh, I encountered a conflict with a certain kext file that prevented me from entering the system. I restarted and booted into Linux, mounted the EFI partition as the root user, and entered the Clover kext file folder, where I deleted some potentially conflicting drivers.

Fatal Operation

After deleting the drivers, I thought that the PCI ID of the network card might not be in the ISO80211 list, so I copied the FakePCIID.kext file from the U disk to the EFI partition. At that time, I was still in the root environment and used the command cp /media/temp/FakePCIID.kext -r /home/Desktop to copy the file successfully (I'm not sure why I copied it to the desktop at the time...). Then, I wanted to delete the original file and used the keyboard's Up key to recall the command history, changed cp to rm -rf, but neglected the fact that /home/Desktop was still appended to the command.

Result

As a result, /Desktop was deleted, and all desktop icons disappeared. Fortunately, I had backed up my papers on Google Drive.

Afterword

Remember, remember, remember that rm -rf should not be used carelessly, and don't press Enter too quickly, or you'll end up with tears all over your keyboard TAT