$
Learn Linux handbook
en
XP:0
Quest 113Binary-Inspector
+260 XP

Binary & Hex Inspection (strings & xxd)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

Binary executables and database files cannot be read with cat or text editors without corrupting the terminal display. Linux provides dedicated tools for inspecting compiled binaries and memory dumps:

- strings : Scans binary files and extracts continuous human-readable ASCII/UTF-8 character sequences (defaulting to 4+ characters). Essential for finding hardcoded URLs, secret keys, version strings, or embedded error messages in compiled software.
- xxd or hexdump -C : Creates a canonical two-column hexadecimal and ASCII dump of binary files to inspect magic bytes (like ELF headers) and binary data offsets.

Inspect the compiled application binary /bin/app. Extract all embedded readable strings with strings /bin/app. Then inspect its binary header in hex format using xxd /bin/app (or hexdump -C /bin/app).

Command Syntax Reference

Command / SyntaxDescription
strings /bin/appExtract readable strings from binary
xxd /bin/appView hex dump of file
hexdump -C /bin/appView canonical hex+ASCII dump

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Extract strings from binary with "strings /bin/app"
  • ○
    Inspect hex dump with "xxd /bin/app" or "hexdump -C /bin/app"

Ready to complete Quest 113?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.