Redirecting you to Reddit in 5 seconds:
https://old.reddit.com/r/debian/comments/1hmoc3q/how_to_undo_sudo_rm_rf