Text and processing
The strings command
Extracts the readable text inside a file, even if it is binary.
Syntax
strings [-n N] <archivo>Most useful options
-nMinimum length of each string (default 4)Copy-ready examples
$ strings /etc/passwdExtract textYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- On big binaries it can dump a lot of text; combine it with grep.
FAQ
What is strings for?
To inspect binaries or recover readable text from a file.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course