Recover Accidentally Deleted Files in Mac Terminal but Shows "Command not found"

I want to recover a folder from the Trash that was deleted 30 minutes ago. I used ~ storedisk$ com.apple.Finder AppleShowAllFiles true in Mac terminal but nothing works.
I found many answers in other forums and I would really appreciate the help to find the cause and to resolve my problem.

“Command not found" shows that your command is wrong, you can use these:

1. ~ storedisk$ ls -a .Trash
2. ~ storedisk$ mv .Trash/filename
3. ~ storedisk$ defaults write com.apple.finder AppleShowAllFiles -bool TRUE

These may fail too, have a try.

The Terminal commands are too professional and difficult. If the files are still in the Trash, why not right-click it and choose Put Back?
It’s quite easy than Terminal!

If you have the backup, you can check it in the iCloud, Time Machine…
If not and you emptied the Trash, the possibility of recovering the files on Mac is small. This time you want to recover, you should apply for some data recovery software like iBoysoft Data Recovery for Mac, which can recover the files that are deleted accidentally and permanently.
Install it and select the drive, then scan the drive, you can recover after previewing.
Good luck. I hope you can get them back.

Thanks, everyone, I will try them one by one~