strings
Linux Commands - Administrative Commands

strings

This command is used to find printable text strings, usually within binary files. A string is by default 4 characters.

 

Example:

 

strings filename

 

Options

-a search the whole object

-f this will print the name of the file in addition to the string

-n num changes the default 4 letters in a string to whatever you want

-o prints the decimal offset of the string

 

strings-gnu

This command is used to find printable text strings, usually within binary files. A string is by default 4 characters.

 

Example:

 

strings-gnu filename

 

Options

-a search the whole object

-f this will print the name of the file in addition to the string

-n num changes the default 4 letters in a string to whatever you want

-o prints the decimal offset of the string