STRINGS(1) General Commands Manual STRINGS(1)

stringsfind printable strings

strings [-az] [-t format] [-n number] [file...]

strings reads each file in sequence and writes printable strings longer than 4 or number. If no file is given or file is ‘-’, strings reads from the standard input.

Ignored, present for POSIX compatibility. Files are always scanned in their entirety and it is considered a flaw to do otherwise.
number
Change the minimum string length (default: 4).
format
Write the byte offset of each string found, the format is dependent on the format argument:
d
Decimal
o
Octal
x
Hexadecimal
Separate each string with NULL instead of newline.

The strings utility exits 0 on success, and >0 if an error occurs.

nm(1), isprint(3)

strings should be compliant with the IEEE Std 1003.1-2024 (“POSIX.1”) specification. The -z option is an extension.

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

2024-09-09 Linux 6.6.67-gentoo-x86_64