1. Computing & Technology
Linux / Unix Command: strings
Command Library

NAME

strings

SYNOPSIS

strings [-afo] [-n number] [file ...]

DESCRIPTION

Displays the strings contained in a binary file. strings could be useful, for example, to examine an unknown executable.

OPTIONS

-a
By default, strings only searches the text and data segments of
object files. The -a option causes strings to search the entire
object file.

-f
Each string is preceded by the name of the file in which it was
found.

-n
Specifies the minimum number of characters in a sequence to be
number, instead of four.

-o
Each string is preceded by its decimal offset in the file.

EXAMPLE

% strings uncle_tim.tiff | more

Shows the strings contained in file uncle_tim.tiff.

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux Command Library Index

>> Also see Shell Command Library

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.