1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/strings.md

21 lines
473 B
Markdown
Raw Normal View History

2015-12-30 15:22:13 -07:00
# strings
> Find printable strings in an object file or binary.
> More information: <https://manned.org/strings>.
2015-12-30 15:22:13 -07:00
- Print all strings in a binary:
2015-12-30 15:22:13 -07:00
2022-12-04 10:12:49 +01:00
`strings {{path/to/file}}`
2015-12-30 15:22:13 -07:00
- Limit results to strings at least *length* characters long:
2015-12-30 15:22:13 -07:00
2022-12-04 10:12:49 +01:00
`strings -n {{length}} {{path/to/file}}`
2015-12-30 15:22:13 -07:00
- Prefix each result with its offset within the file:
2015-12-30 15:22:13 -07:00
2022-12-04 10:12:49 +01:00
`strings -t d {{path/to/file}}`
2015-12-30 15:22:13 -07:00
- Prefix each result with its offset within the file in hexadecimal:
2015-12-30 15:22:13 -07:00
2022-12-04 10:12:49 +01:00
`strings -t x {{path/to/file}}`