Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

75%
+4 −0
Q&A Safe handling and display of untrusted data in the terminal

You can use strings (comes with binutils, should usually be available) to get readable strings out of binary files. Summary from the manual: For each file given, GNU strings prints the printabl...

posted 6mo ago by GeraldS‭  ·  edited 6mo ago by GeraldS‭

Answer
#2: Post edited by user avatar GeraldS‭ · 2026-03-13T05:44:02Z (6 months ago)
added example from question
  • You can use [`strings`](https://www.man7.org/linux/man-pages/man1/strings.1.html) (comes with binutils, should usually be available) to get readable strings out of binary files.
  • Summary from the manual:
  • > For each file given, GNU strings prints the printable character
  • sequences that are at least 4 characters long (or the number given
  • with the options below) and are followed by an unprintable
  • character.
  • You can use [`strings`](https://www.man7.org/linux/man-pages/man1/strings.1.html) (comes with binutils, should usually be available) to get readable strings out of binary files.
  • Summary from the manual:
  • > For each file given, GNU strings prints the printable character
  • sequences that are at least 4 characters long (or the number given
  • with the options below) and are followed by an unprintable
  • character.
  • Using it on your example:
  • ```console
  • $ echo -e '\e[1;31;103mHello\b\b\b\b\bこんにちは\e[0m' | strings
  • [1;31;103mHello
  • ```
#1: Initial revision by user avatar GeraldS‭ · 2026-03-13T05:42:25Z (6 months ago)
You can use [`strings`](https://www.man7.org/linux/man-pages/man1/strings.1.html) (comes with binutils, should usually be available) to get readable strings out of binary files.

Summary from the manual:

> For each file given, GNU strings prints the printable character
       sequences that are at least 4 characters long (or the number given
       with the options below) and are followed by an unprintable
       character.