strings—Print the strings of printable characters in files

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

For each file given, GNU strings prints the printable character sequences that are at least four characters long (or the number given with the options below) and are followed by a NUL or newline character. By default, it only prints the strings from the initialized data 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 nontext files.

The long and short forms of options, shown here as alternatives, are equivalent.

Options Description
-a, –all, – Do not scan only the initialized data section of object files; scan the whole files.
-f, –print-file-name Print the name of the file before each string.
–help Print a summary of the options to strings on the standard output and exit.
-v, –version Print the version number of strings on the standard output and exit.
-n min-len, -min-len, -bytes=min-len Print sequences of characters that are at least min-len characters long, instead of the default 4.
t o,x,d, –radix=o,x,d Print the offset within the file before each string. The single character argument specifies the radix of the offset—octal, hexadecimal, or decimal.
–target=bfdname Specify an object code format other than your system’s default format. (See objdump(1), for information on listing available formats.)
-o Like –t o.


If You Like What We Do Here On LinuxConcept, You Should Consider:

Stay Connected to: Twitter | Facebook

Subscribe to our email updates: Sign Up Now


We are thankful for your support.

Follow me