I've been using Ubuntu 12.04 and accidentally deleted a folder using Shift+Del.
Does anyone have any idea how to recover the folder?
Yes, you can use extundelete
command. (extundelete is a utility to recover deleted files from ext3/ext4 partition.)
Note that the partition must be unmounted before you recover. In most cases, you will have to shut down your computer and boot using an Ubuntu LiveCD/LiveUSB to be able to this.
Steps to recover:
Install extundelete with:
sudo apt-get install extundelete
Usage example:
sudo extundelete --restore-directory /home/myself/Documents/deleted_folder/ /dev/sda1
The /dev/sda1
is the device name where the deleted data was.