linux命令strings,其man信息如下:
strings(1)                                        GNU Development Tools                                        strings(1)

NAME
       strings - 显示文件中的可打印字符

总览 (SYNOPSIS)
       strings
              [-a|-|--all] [-f|--print-file-name] [-o] [--help] [-v|--version] [-n min-len|-min-len|--bytes=min-len] [-t
              {o,x,d}[--target=bfdname] |--radix={o,x,d}] file

描述 (DESCRIPTION)
       For each file given, GNU strings 显示 每个 指定的 file 文件里 包含的 所有 有 4个 (或者 用 选项 指定 的 数字) 以 上
       连 续 可打印 字符 的字符串, 在 之后 紧跟着 一个 不可 打印 的 字符. 默认 情况 下, 它 只显示 目标文件 初始化 和 装载
       段 的 字符串; 对于 其它 类型 的 文件 它 显示 整个 文件 里包含 的 所有 字符串.

strings 一般 用来 查看 非 文本 文件 的 内容.

选项 (OPTIONS)
       在 这里 并列 的 长选项 和 短选项 都是 等价的.

-a

--all

-      不 只是 扫描 目标 文件 初始化 和 装载 段, 而是 扫描 整个 文件.

-f

--print-file-name
              在 显示 字符串 之前 先 显示 文件名.

--help 在 标准 输出 打印 strings 命令 的 选项

列表

然后 退出.
   -v

--version
              在 标准 输出 打印 strings 命令 的 版本号 然后 退出.

-n min-len

-min-len

-bytes=min-len
              打印 至少 min-len 字符 长 的 字符串. 默认的 是 4.

-t {o,x,d}

--radix={o,x,d}
              在 字符串 前面 显示 其在 文件 中 的 偏移量. 选项 中 的 单个 字符 指定 偏移量的 进制 是 八进制, 十六进制 还
              是 十进制.

--target=bfdname
              指定 一种 目标 代码 格式 来 代替 你的 系统的 默认 格式. 关于 可用的 目标 代码格式 请 参见 objdump(1).

-o     同 -t o.

------------------------------

strings - print the strings of printable characters in files.

For each file given, GNU strings prints the printable character sequences that are at
       least 4 characters long (or the number given with the options below) and are followed by
       an unprintable character.   By default, it only prints the strings from the initialized
       and loaded sections of object files; for other types of files, it prints the strings from
       the whole file.
       strings is mainly useful for determining the contents of non-text files.

可见strings能输出文件中的可打印字符串(可指定字符串的最小长度),通常用来查看非文本文件(如二进制可执行文件)中的可读内容。比如:

[yixbao.cn]#strings /lib/tls/libc.so.6 | grep GLIBC
GLIBC_2.0
GLIBC_2.1
GLIBC_2.1.1
GLIBC_2.1.2
GLIBC_2.1.3
GLIBC_2.2
GLIBC_2.2.1
GLIBC_2.2.2
GLIBC_2.2.3
GLIBC_2.2.4
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_PRIVATE

这样就能看到glibc支持的版本。

http://yixbao.cn/html/diannaojishu/200808/12-195.html

最新文章

  1. AndroidStudio配置gradle,让App自动签名
  2. C#中string在内存中是如何表示的
  3. LR测试登陆后进行的操作时 绕过登录
  4. Python之函数之路
  5. [转]unzip解压windows zip乱码的处理
  6. Weblogic环境下hibernate、antlr类加载冲突问题分析及解决方案
  7. Linux达人养成计划1(第2章 Linux系统安装)
  8. iOS 画音频波形曲线 根据音频数据版
  9. 前端构建利器Grunt—Bower
  10. UVa 10716 - Evil Straw Warts Live
  11. bat调用kettle的job文件
  12. C#如何实现DataGridView单元格拖拽
  13. 权限管理系统之项目框架搭建并集成日志、mybatis和分页
  14. chromedriver与chrome各版本的对应关系表
  15. Android : iperf-2.0.4 网络测试工具
  16. python:数据类型set
  17. JS DOM操作(三) Window.docunment对象——操作属性
  18. django rest_framework入门四-类视图APIView
  19. Oracle EBS 报错 您不具有分配给您的清除MDS的权限
  20. Spring Boot从Controller层进行单元测试

热门文章

  1. iOS模拟器录屏转gif神器
  2. OpenCV自带dnn的Example研究(6)— text_detection
  3. 【OD深入学习】Java多线程面试题
  4. poj1811(pollard_rho模板)
  5. Python列表删除的三种方法
  6. C#中==与equal的区别
  7. (Python OpenGL)【1】你好顶点 PyOpenGL
  8. win10系统重装
  9. EM最大期望算法
  10. zabbix+telegram的API接口(告警)