Strings are recognized by looking for sequences of at least 4 (by default) printable characters terminating in a NUL character (that is, null-terminated strings). Some implementations provide options for determining what is recognized as a printable character, which is useful for finding non-ASCII and wide character text. 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. With regular text files, strings and cat give different output. cat outputs the non printable characters but strings does not.
strings is part of the GNU Binary Utilities (binutils), and has been ported to other operating systems including Windows.1
Using strings to print sequences of characters that are at least 8 characters long (this command prints the system's BIOS information; should be run as root):
cygwin /wiki/Cygwin ↩