在 Debian(以及大多数 Linux 发行版)里,strings 是一个命令,但它不是 Debian 特有的,而是来自 GNU binutils 工具集。
stringsbinutilsstrings /bin/ls
strings -n 6 program
strings libfoo.so | grep "version"
which strings
dpkg -S $(which strings)
如果没有:
sudo apt update
sudo apt install binutils
如果你是想问 “strings 是不是 Debian 内置 shell 命令”,答案是:
❌ 不是 shell 内建命令
✅ 是系统可安装/常预装的外部命令
需要我给你举几个实战例子吗?