Accidentally deleted a folder [duplicate]
Solution 1:
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.