Difference between revisions of "Grep for file recovery"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Recovery_tools|Recovery tools</yambe:breadcrumb> =grep for file recovery= We can use grep such as: <pre> grep -a -C 100 'containing string' /dev/sda1 > grep_...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>Recovery_tools|Recovery tools</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Recovery tools]] > [[Grep for file recovery]]
=grep for file recovery=
 
We can use grep such as:
We can use grep such as:
<pre>
<pre>
Line 11: Line 11:
strings image.dd > strings_result.txt
strings image.dd > strings_result.txt
</pre>
</pre>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Recovery tools]] > [[Grep for file recovery]]

Latest revision as of 13:56, 24 August 2022

Home > CentOS > CentOS 6.x > Recovery tools > Grep for file recovery

We can use grep such as:

grep -a -C 100 'containing string' /dev/sda1 > grep_result.txt

for recovering file when we know some significant text that is present in the file to be recovered

Something much more comprehensive for smaller partitions can be done using:

strings image.dd > strings_result.txt



Home > CentOS > CentOS 6.x > Recovery tools > Grep for file recovery