-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux strings Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to strings on Linux, covering Arch Linux, CachyOS, and other distributions including extracting printable strings, binary file analysis, and text extraction.
Basic usage:
# Extract strings
strings file.bin
# Shows printable strings from fileFilter by length:
# Minimum string length
strings -n 10 file.bin
# -n = number (minimum length: 10)Printable strings:
# Extract printable strings
strings file.bin
# Shows strings of 4+ charactersOutput to file:
# Save strings to file
strings file.bin > strings.txt
# Saves extracted stringsAnalyze binary:
# Analyze binary file
strings /usr/bin/ls
# Shows strings from executableInclude all:
# Include all characters
strings -a file.bin
# -a = all (searches entire file)Different encoding:
# UTF-8 encoding
strings -e S file.bin
# -e = encoding (S = single-byte)Show offsets:
# Show offsets
strings -t x file.bin
# -t = radix (x = hexadecimal offset)Check installation:
# strings is part of binutils
# Usually pre-installed
# Check strings
which stringsThis guide covered strings usage, string extraction, and binary file analysis for Arch Linux, CachyOS, and other distributions.
- hexdump Guide - Hex dump
- od Guide - Octal dump
- file Guide - File type detection
-
strings Documentation:
man strings
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.