Simon Willison's Weblog

Subscribe

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"

Posted 21st August 2010 at 10:56 am

Recent articles

linux 46 sysadmin 26 recovered 213

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe