Finds the printable strings in an object or binary file.
strings [ -a ] [ - ] [ -o ] [ -t Format ] [ -n Number ] [ -Number ] [ File ... ]
The strings command looks for printable strings in an object or binary file. A string is any sequence of 4 or more printable characters that end with a new-line or a null character. The strings command is useful for identifying random object files.
This command returns the following
exit values:
0 | Specifies that the command ran successfully. |
>0 | Specifies that an error occurred. |
strings strings
@(#)56 1.17 com/cmd/scan/strings.c, cdmscan, bos320 5/7/92 10:21:20 Standard input strings.cat /usr/mbin/strings Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] %7o %7d %7x %7o %7d
strings -12 strings
1.17 com/cmd/scan/strings.c, cdmscan, bos320 5/7/92 10:21:20 Standard input /usr/mbin/strings Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...]
strings -t x -n 20 strings
1017 1.17 com/cmd/scan/strings.c, cmdscan, bos320 5/7/92 10:21:20 108c Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] 10d8 Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] 1124 Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] 1170 Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...] 11bc Usage: strings [-a | -] [-o] [-t format] [-n | -#] [file...]
The od command.