What was the trash warning you were getting?
Also, here's another embarrassing example of what can happen by trying to use the terminal. I'm a pretty smart person, but I still screw up sometimes. I was following an online tutorial on how to uninstall iTunes by removing the files with the terminal. In the tutorial, the command was so long that it was multiple lines. I thought I had to enter each line individually by looking at the format on the webpage... I was wrong:
https://forums.macrumors.com/threads/710281/ <-- See here
Also, here's another embarrassing example of what can happen by trying to use the terminal. I'm a pretty smart person, but I still screw up sometimes. I was following an online tutorial on how to uninstall iTunes by removing the files with the terminal. In the tutorial, the command was so long that it was multiple lines. I thought I had to enter each line individually by looking at the format on the webpage... I was wrong:
https://forums.macrumors.com/threads/710281/ <-- See here