跳转至

敏感文件检索

grep 文件检索

Bash
1
2
3
4
# -r:递归搜索
# -H:打印文件名
# -a:显示二进制文件中的匹配结果
grep -rHa "192.168.5.2" /var/log # 检索包含 192.168.5.2 的文件,并显示内容