Simon Willison’s Weblog

Saturday, 21st August 2010

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” # 10:56 am

2010 » August

MTWTFSS
      1
2345678
9101112131415
16171819202122
23242526272829
3031