strings

Extract printable strings from binary files.

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

strings extracts sequences of printable characters from binary files — useful for quickly inspecting executables for embedded configuration, version strings, URLs, credentials, or other readable content without a full reverse engineering setup.

Common flags
FlagMeaning
-n --bytesMinimum string length (default: 4)
-a --allScan entire file (not just data sections)
-e --encodingCharacter encoding to detect
Examples
strings /usr/bin/curl | grep -i versionFind version string in curl binary · explain & risk-check →
strings malware.bin | grep -E 'https?://'Extract URLs from a binary · explain & risk-check →
strings config.bin | grep -i passwordFind hardcoded credentials (security audit) · explain & risk-check →
Pro tip

Use `strings -n 8 binary | grep -E '^[a-zA-Z]{8,}$'` to filter out noise — longer minimum length and letter-only filter finds meaningful text like hostnames and keys.

Related
file xxd grep
Open the full explainer →More in Text Processing

Reference text is hand-written and may be incomplete — check man strings for your version. Test destructive commands on a non-production system first.