Linux recover deleted files
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Grep all block device for a string withing a deleted file and display 100 lines before and after the match
sudo grep -i -a -B100 -A100 'string' /dev/sda1 > file.txt
References
recovering-accidentally-deleted-files Stackoverflow