strings (Unix)

From Wikipedia, the free encyclopedia

In computer software, strings is a program in Unix-like operating systems that finds and prints text strings embedded in binary files such as executables.

It can be used on object files, and core dumps.

Strings are recognised by looking for sequences of at least 4 (by default) printable characters terminating in a NUL character (that is, C strings). Some implementations provide options for determining what is recognised as a printable character, which is useful for finding non-ASCII and wide character text.

Common usage includes piping it to grep and fold or redirecting the output to a file.

It is part of the GNU Binary Utilities (binutils), and has been ported to other operating systems including Microsoft Windows.

[edit] Example

$ strings foobar
Qåtd
/lib/ld-linux.so.2
_Jv_RegisterClasses
__gmon_start__
libc.so.6
puts
_IO_stdin_used
__libc_start_main
GLIBC_2.0
...

[edit] See also

[edit] External links