Usage: /usr/bin/strings [option(s)] [file(s)]
Display printable strings in [file(s)] (stdin by default)
The options are:
-a - --all Scan the entire file, not just the data section [default]
-d --data Only scan the data sections in the file
-f --print-file-name Print the name of the file before each string
-n <number> Locate & print any sequence of at least <number>
--bytes=<number> displayable characters. (The default is 4).
-t --radix={o,d,x} Print the location of the string in base 8, 10 or 16
-w --include-all-whitespace Include all whitespace as valid string characters
-o An alias for --radix=o
-T --target=<BFDNAME> Specify the binary file format
-e --encoding={s,S,b,l,B,L} Select character size and endianness:
s = 7-bit, S = 8-bit, {b,l} = 16-bit, {B,L} = 32-bit
--unicode={default|locale|invalid|hex|escape|highlight}
-U {d|l|i|x|e|h} Specify how to treat UTF-8 encoded unicode characters
-s --output-separator=<string> String used to separate strings in output.
@<file> Read options from <file>
-h --help Display this information
-v -V --version Print the program's version number
/usr/bin/strings: supported targets: elf64-x86-64 elf32-i386 elf32-x86-64 pei-i386 pe-x86-64 pei-x86-64 elf64-little elf64-big elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin
Report bugs to <https://sourceware.org/bugzilla/>
Options (27)
| Option | Description | Source |
|---|
-a - | Scan the entire file, not just the data section [default] | help + man |
-d --data | Only scan the data sections in the file | help + man |
-f --print-file-name | Print the name of the file before each string | help + man |
-n number | Locate & print any sequence of at least <number> | help + man |
--bytes number | Print sequences of displayable characters that are at least min-len characters long. | help + man |
-t --radix={o | Print the location of the string in base 8, 10 or 16 | help + man |
-o | An alias for --radix=o | help + man |
-T --target=<BFDNAME | Specify the binary file format | help + man |
--unicode | | help |
-U d|l|i|x|e|h | Specify how to treat UTF-8 encoded unicode characters | help |
-h --help | Display this information | help |
-v -V | Print the program's version number | help + man |
--all | - (in the manual page but not in --help) | man |
--data | Only print strings from initialized, loaded data sections in the file. (in the manual page but not in --help) | man |
--print-file-name | Print the name of the file before each string. (in the manual page but not in --help) | man |
--help | Print a summary of the program usage on the standard output and exit. (in the manual page but not in --help) | man |
-min-len | (in the manual page but not in --help) | man |
--radix radix | Print the offset within the file before each string. (in the manual page but not in --help) | man |
-e encoding | (in the manual page but not in --help) | man |
--encoding encoding | Select the character encoding of the strings that are to be found. (in the manual page but not in --help) | man |
--target bfdname | Specify an object code format other than your system's default format. (in the manual page but not in --help) | man |
-V | (in the manual page but not in --help) | man |
--version | Print the program version number on the standard output and exit. (in the manual page but not in --help) | man |
-w | (in the manual page but not in --help) | man |
--include-all-whitespace | By default tab and space characters are included in the strings that are displayed, but other whitespace characters, such a newlines and carriage returns, are not. (in the manual page but not in --help) | man |
-s | (in the manual page but not in --help) | man |
--output-separator | By default, output strings are delimited by a new-line. (in the manual page but not in --help) | man |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.