Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Undelete! How to undelete a file accidentally removed using rm on Linux, by grepping through the raw bytes on the hard drive searching for a unique string that was contained in the file. “grep -a -B 25 -A 100 ’some string in the file’ /dev/sda1 > results.txt”

Tagged ,

1 comment

  1. Just be sure you do it promptly, before other file activity on the system overwrites that area of the filesystem.

    Bill Karwin - 21st August 2010 19:14 - #

Comments are closed.
A django site