Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

17
  • 25
    Linux/Unix doesn't forgive :) Commented Nov 15, 2013 at 9:07
  • 8
    Checkout them from the version control system you use. You use one, right? Commented Nov 15, 2013 at 9:08
  • 3
    There are SOME ways to recover files/data. But most of them is very hard to do. Be sure you don't write any more to the disk or you are doomed completely. Commented Nov 15, 2013 at 9:12
  • 5
    When I did this, when I was young, it was not as bad as I thought. This is how I discovered that most of the time taken to write is in thinking. The second time around there will be less thinking, and you may even improve it. Commented Nov 15, 2013 at 9:13
  • 2
    Unmount the file system ASAP to avoid the blocks previously allocated for the deleted files from being overwritten. Assuming the underlying file system is either ext3 or ext4, you might have some luck recovering files using extundelete. Commented Nov 15, 2013 at 9:14