how to recover deleted folders in linux code example
Example: ubuntu undelete a whole directory
sudo extundelete --restore-directory /home/myself/Documents/deleted_folder/ /dev/sda1
sudo extundelete --restore-directory /home/myself/Documents/deleted_folder/ /dev/sda1