0

Possible Duplicate:
How to recover deleted files?

I created directory inside /var/www/demo, and placed some files there. By mistake I pressed the delete button, and my files were deleted. Now I don’t have these files. So how to recover my data from this /var/www/ directory.

diff
  • 233
  • Before you start recovering you might want to search for the files - sometimes you just misplace the files somehow. Try this in the Terminal: "sudo find / -name *.html". Switch out for .php if that is what you are using. Good luck! – Gjermund Bjaanes Oct 30 '12 at 08:58

3 Answers3

2

If these files were deleted with the Nautilus file manager they will be in the Trash bin. By default the Trash bin is the icon in the bottom right of the screen.

If the files were deleted with the command line then the files cannot be recovered easily. There are some tools to "undeleted" files but I never used any of those.

jmbouffard
  • 1,045
1

if this were not found, to recover deleted files you can use testdisk

sudo apt-get install testdisk

I've used it, and all files recovered.

metamorph
  • 1,673
0

The files were deleted as a root user. You would find them in /root/.local/share/Trash/files (For versions older than Ubuntu 11.10, you would find them in /root/.Trash).

ignite
  • 8,936