linux命令strings
来源:互联网 发布:15万suv还是轿车 知乎 编辑:程序博客网 时间:2024/06/05 17:15
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://www.cppblog.com/prayer/archive/2009/07/22/90836.html
- linux命令strings
- linux strings命令
- linux命令strings
- linux的strings命令
- linux 命令之strings
- python 实现linux命令 strings
- linux中的strings命令简介
- linux下的命令学习!strings
- 不得不再聊linux中的strings命令
- 再次唠叨linux中的strings命令
- python简单实现linux命令strings
- linux的strings命令查看glibc版本
- strings命令
- strings命令
- strings命令
- Linux命令之strings:打印文件中的可打印字符串
- Linux调试、跟踪命令:strace/ltrace、ldd、objdump、nm、strings
- Linux文件操作命令strings使用方法详细介绍
- Hadoop源码分析37 RPC的线程协作
- 跟我一起学makefile
- Android无线网络使用无线键盘、触摸屏操作手机
- CSDN论坛网友写的一篇IOCP文章 -- 理解IOCP
- PROFINET及其同步实时通讯分析
- linux命令strings
- Euler公式
- Anonymous Inner Class(匿名内部类)是否可以extends其他类?是否可以implements interface?
- java反射机制与动态代理
- linux chmod命令
- ubuntu快捷键
- MOTOMAN机器人网络控制的实现
- Android是怎么加载/res/_dpi文件的
- 微信:社交基因和商务交易天然冲突,更适合O2O而不是电商