Files
cheatsheet-tldr/tldr/linux/photorec
2025-04-26 00:18:47 +00:00

19 lines
460 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# photorec
> Deleted file recovery tool.
> It is recommended to write recovered files to a disk separate to the one being recovered from.
> More information: <https://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step>.
- Run PhotoRec on a specific device:
`sudo photorec {{/dev/sdb}}`
- Run PhotoRec on a disk image (`image.dd`):
`sudo photorec {{path/to/image.dd}}`