I recently updated to macOS Mojave. I was experimenting with the new desktop stack feature. Long story short, I ended up creating a folder on the dock and putting all the files from my desktop into it. When I did this all the files stayed on the desktop, so I deleted them (moved them to trash). When I saw that the files were no longer on my desktop, but were still in the folder in the dock, I emptied my trash. That's when I found out that the files in the folder on the dock must have just been symlinks because once the trash was emptied, so was the folder on my dock.
Uh oh, I just mistakenly deleted all the files that I had on my desktop.
I searched google and see that there are programs (not produced by Apple) I can install to recover these files. I'm wondering if there is a simple (command line) way I can recover these files or if there is an official application produced by Apple that I can install to recover them.
How can I recover files that were emptied from the trash?