cmdxray / commands / strings

What does strings do?

print the printable character sequences found in a file.

▸ Explain your own strings command →

strings examples, explained

$ strings binary

  • stringsprint the printable character sequences found in a file
  • binaryan argument passed to the command

$ strings -n 8 a.out

  • stringsprint the printable character sequences found in a file
  • -nminimum string length to report (default 4)
  • 8value for -n
  • a.outan argument passed to the command

$ strings -t x firmware.bin

  • stringsprint the printable character sequences found in a file
  • -tprint the offset of each string (o/x/d radix)
  • xvalue for -t
  • firmware.binan argument passed to the command

strings flags & options

-ascan the entire file, not just loadable sections
-nminimum string length to report (default 4)
-tprint the offset of each string (o/x/d radix)
-fprint the file name before each string
-eselect the character encoding (s/b/l/B/L)
--bytesminimum string length to report
--radixprint the offset of each string (o/x/d)
--encodingselect the character encoding

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.