简短回答:可以,但只能恢复文件中“以可读字符串形式存在”的文本,不能凭空恢复被覆盖或加密的数据。
下面详细说一下:
strings在 Debian / Linux 里,strings 是一个命令行工具,用来从二进制文件、镜像、内存 dump、日志、固件等里面提取可打印字符序列(默认长度 ≥ 4)。
典型用法:
strings file.bin
strings -n 6 file.bin
strings /dev/sda | less
strings 能“恢复”什么文本✅ 可以恢复的情况
❌ 不能恢复的情况
rm 后磁盘已被重写strings app | grep password
strings disk.img | grep "confidential"
strings mem.dump | less
strings -e l file # 16-bit little endian
strings -e b file # 16-bit big endian
strings -n 8 file # 更长短串
strings -t x file # 显示偏移
结合:
grepxxdbinwalkforemost / photorecstrings 不是文件恢复工具,只能:
extundelete
testdisk
photorec
Debian 的
strings可以恢复“还留在文件里的可读文本”,但不是万能恢复工具。
如果你能说具体场景(误删?程序?磁盘?内存?),我可以给你更精确的方法。