OS Manuals

/usr/bin/strings

GNU binutils

From binutils 2.47-r4 (os), captured 2026-11-10 by running strings --help (exit 0). permalink

Also provided by 1 other package version
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)
OptionDescriptionSource
-a -Scan the entire file, not just the data section [default]help + man
-d --dataOnly scan the data sections in the filehelp + man
-f --print-file-namePrint the name of the file before each stringhelp + man
-n numberLocate & print any sequence of at least <number>help + man
--bytes numberPrint sequences of displayable characters that are at least min-len characters long.help + man
-t --radix={oPrint the location of the string in base 8, 10 or 16help + man
-oAn alias for --radix=ohelp + man
-T --target=<BFDNAMESpecify the binary file formathelp + man
--unicodehelp
-U d|l|i|x|e|hSpecify how to treat UTF-8 encoded unicode charactershelp
-h --helpDisplay this informationhelp
-v -VPrint the program's version numberhelp + man
--all- (in the manual page but not in --help)man
--dataOnly print strings from initialized, loaded data sections in the file. (in the manual page but not in --help)man
--print-file-namePrint the name of the file before each string. (in the manual page but not in --help)man
--helpPrint 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 radixPrint 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 encodingSelect the character encoding of the strings that are to be found. (in the manual page but not in --help)man
--target bfdnameSpecify 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
--versionPrint 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-whitespaceBy 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-separatorBy 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.