Oh my god, what have I done?

Code Block
Last login: Sun Mar 28 13:12:13 on console
steventang@Stevens-Mac-mini ~ % cd ~/Desktop/workspace/denver/2021/client/ls
cd: no such file or directory: /Users/steventang/Desktop/workspace/denver/2021/client/ls
steventang@Stevens-Mac-mini ~ % sudo rm -r ./*
Password:
^C
steventang@Stevens-Mac-mini ~ % pwd
/Users/steventang

Was supposed to delete the content under client folder, too later for the ^C, all my stuff under my ~ folder are almost gone, anyway to recovery?
I think the only way to recover this is to reinstall macOS and then restore your data from your most recent backup.

You are not alone in having done this - I made a similar mistake 30+ years ago on a Solaris machine, but fortunately had a full (and recent) backup to recover with. Consider it as a 'rite of passage' to being a Unix system admin and don't do it again :)
Thanks, took the lesson, purchased a network drive as the time machine backup and turned the time machine always on.
Oh my god, what have I done?
 
 
Q