Name
strings
Synopsis
strings [options
]files
Search object or binary files for sequences of four or more printable characters that end with a newline or null. See also od.
Common Options
-
n
,-n
n
,--bytes=
n
Minimum string length is n (default is 4).
-
,-a
,--all
Search entire file, not just the initialized data portion of object files.
-
-o
Display the string’s offset position before the string. Solaris and Mac OS X: same as
-t
d
. GNU/Linux: same as-t
o
.-t
format
,--radix=
format
Specify how to print string offsets. format is one of
d
,o
, orx
for decimal, octal, or hexadecimal, respectively.
GNU/Linux Options
-e
encoding
,--encoding=
encoding
Specify the character encoding of the strings to be found. Possible values are:
|
16-bit big-endian |
|
32-bit big-endian |
|
16-bit little-endian |
|
32-bit little-endian |
|
Single-byte character, such as ASCII, ISO-8859, etc. (the default) |
-
--target=
format
Specify an alternative object code format to the system default. Any valid BFD target name may be used for format.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.