⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strings.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>GNU Binary Utilities</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="GNU Binary Utilities">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="strings">strings</a>,

Next:<a rel="next" accesskey="n" href="strip.html#strip">strip</a>,

Previous:<a rel="previous" accesskey="p" href="size.html#size">size</a>,

Up:<a rel="up" accesskey="u" href="index.html#Top">Top</a>

<hr><br>

</div>



<h2 class="chapter">strings</h2>



<pre class="smallexample">     strings [<code>-afov</code>] [<code>-</code><var>min-len</var>]

             [<code>-n</code> <var>min-len</var>] [<code>--bytes=</code><var>min-len</var>]

             [<code>-t</code> <var>radix</var>] [<code>--radix=</code><var>radix</var>]

             [<code>-e</code> <var>encoding</var>] [<code>--encoding=</code><var>encoding</var>]

             [<code>-</code>] [<code>--all</code>] [<code>--print-file-name</code>]

             [<code>--target=</code><var>bfdname</var>]

             [<code>--help</code>] [<code>--version</code>] <var>file</var>...

     </pre>



   <p>For each <var>file</var> given, <small>GNU</small> <code>strings</code> 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.



   <p><code>strings</code> is mainly useful for determining the contents of non-text

files.



     <dl>

<dt><code>-a</code>

     <dd><dt><code>--all</code>

     <dd><dt><code>-</code>

     <dd>Do not scan only the initialized and loaded sections of object files;

scan the whole files.



     <br><dt><code>-f</code>

     <dd><dt><code>--print-file-name</code>

     <dd>Print the name of the file before each string.



     <br><dt><code>--help</code>

     <dd>Print a summary of the program usage on the standard output and exit.



     <br><dt><code>-</code><var>min-len</var><code></code>

     <dd><dt><code>-n </code><var>min-len</var><code></code>

     <dd><dt><code>--bytes=</code><var>min-len</var><code></code>

     <dd>Print sequences of characters that are at least <var>min-len</var> characters

long, instead of the default 4.



     <br><dt><code>-o</code>

     <dd>Like <code>-t o</code>.  Some other versions of <code>strings</code> have <code>-o</code>

act like <code>-t d</code> instead.  Since we can not be compatible with both

ways, we simply chose one.



     <br><dt><code>-t </code><var>radix</var><code></code>

     <dd><dt><code>--radix=</code><var>radix</var><code></code>

     <dd>Print the offset within the file before each string.  The single

character argument specifies the radix of the offset--<code>o</code> for

octal, <code>x</code> for hexadecimal, or <code>d</code> for decimal.



     <br><dt><code>-e </code><var>encoding</var><code></code>

     <dd><dt><code>--encoding=</code><var>encoding</var><code></code>

     <dd>Select the character encoding of the strings that are to be found. 

Possible values for <var>encoding</var> are: <code>s</code> = single-byte

characters (ASCII, ISO 8859, etc., default), <code>b</code> = 16-bit

Bigendian, <code>l</code> = 16-bit Littleendian, <code>B</code> = 32-bit Bigendian,

<code>L</code> = 32-bit Littleendian. Useful for finding wide character

strings.



     <br><dt><code>--target=</code><var>bfdname</var><code></code>

     <dd>Specify an object code format other than your system's default format. 

See <a href="Target-Selection.html#Target%20Selection">Target Selection</a>, for more information.



     <br><dt><code>-v</code>

     <dd><dt><code>--version</code>

     <dd>Print the program version number on the standard output and exit. 

</dl>



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -