So I just recently downloaded Linux Ubuntu and I was experimenting with some of the functions to get used to Linux. While I was trying to learn I wrote in the terminal find . -delete -name (file name) thinking it would delete just that specific file BUT it deleted ALL my personal files in just about EVERY directory from home (I used this command in the home directory so kind of makes sense). I used a very specific file name though so I can't imagine that any other file would have the same name as it (it was "asdfasdf"). Is there anything I can do to restore all my information? And how should I have coded to just remove the specific file using find and NOT rm?
Short answer: no, because by default GNU/Linux doesn't come with a Recycle Bin when using terminal and executing commands like
find . -delete.
But as other users said, you could restore your files from a backup or try to restore them using some rescue software (but it'll take some time and as you execute more and more write operations on your disk, lower are the chances you're gonna get your data back).