
strings | 445
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Options
Of the following options, only -c can be used with unstr. All other
options apply only to strfile.
-c delimiter
Change the delimiting character from the percent sign to
delimiter. Valid for both strfile and unstr.
-i Ignore case when ordering the strings.
-o Order the strings alphabetically.
-r Randomize access to the strings.
-s Run silently; don’t give a summary message when finished.
-x Set the STR_ROTATED bit in the header str_flags field.
strings
strings [options] files
Search each file specified and print any printable character strings
found that are at least four characters long and followed by an
unprintable character. Often used to find human-readable content
within binary files.
Options
-, -a, --all
Scan entire object files; default is to scan only the initialized
and loaded sections for object files.
-e encoding, --encoding=encoding
Specify the character encoding of the strings to be found.
Possible values are:
b 16-bit big-endian
B 32-bit big-endian
l 16-bit little-endian
L 32-bit little-endian
s Single-7-bit-byte characters, such as ASCII, ISO-8859,
etc. (the default)
S Single-8-bit-byte characters.
-f, --print-file-name
Print the name of the file before each string.
-min-len, -n min-len, --bytes=min-len
Print only strings that are at least min-len characters. ...