Name

strings

Synopsis

strings [options] files

Description

Search each file specified and print any printable character strings found that are at least four characters long and followed by an unprintable character.

Options

-, -a, --all

Scan entire object files; default is to scan only the initialized and loaded sections for object files.

-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.

-t base, --radix= base

Print the offset within the file before each string, in the format specified by base:

d

Decimal

o

Octal

x

Hexadecimal

--target= format

Specify an alternative object code format to the system default.

-o

Same as -t o.

--help

Print help message and then exit.

-v, --version

Print version information and then exit.

Get Linux in a Nutshell, Third 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.