Difference between revisions of "Linux recover deleted files"

From Ever changing code
Jump to navigation Jump to search
(Created page with "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 = Refere...")
 
 
Line 3: Line 3:


= References =
= References =
[Stackoverflow]
[https://unix.stackexchange.com/questions/2677/recovering-accidentally-deleted-files recovering-accidentally-deleted-files] Stackoverflow

Latest revision as of 09:25, 26 February 2018

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