STRINGS(1plan9)
π STRINGS(1plan9) π
okay bestie, so this is strings from the Plan 9 manual, section 1 β and no cap, it's one of those tiny little tools that you end up obsessed with. it pulls the readable stuff out of files that are definitely not meant to be read by humans. π¦
β¨ NAME β¨
strings β extract printable strings π
β¨ SYNOPSIS β¨
strings [ file ... ]
πΈ DESCRIPTION πΈ
So here's the vibe: strings goes hunting through a file β and like, typically a binary file, the kind of cursed little thing you'd never open in an editor β and it finds and prints every string made of 6 or more consecutive printable UTF-encoded characters. if you don't hand it any file at all, it just reads from standard input by default. easy. π«Ά
Now, what counts as "printable"? great question, bestie, because it's specific:
- the ASCII characters from blank through tilde β that's hexadecimal
20through7E, inclusive π - and all the other characters from value
00A0toFFFFπ
For every string it finds, strings tells you two things:
- the decimal offset within the file where that string starts π
- the actual text of the string itself π¬
And here's the one little plot twist you gotta know: if a string is longer than 70 runes, the line gets cut off with three dots (...) and then printing picks back up on the next line, starting with the offset of that continuation line. so long strings get wrapped, not truncated. slay. β¨
not me actually caring about runes in 2025 but here we are, it's giving attention to detail π
π SOURCE π
/src/cmd/strings.c
π¦ SEE ALSO π¦
nm(1)β go look at symbols next, it's the natural sequel fr fr π«Ά
and that's the whole page, bestie!! π this one came straight out of the Plan 9 manual, STRINGS(1plan9), and it's iconic, it ate, periodt. πβπ
π¦ where this page comes from
- debian bookworm: 9base 1:6-13 Β· Lucent
- debian trixie: 9base 1:6-14 Β· Lucent
- ubuntu jammy: 9base 1:6-11 Β· Lucent
- ubuntu noble: 9base 1:6-14 Β· Lucent
- ubuntu questing: 9base 1:6-15
- ubuntu resolute: 9base 1:6-15build1 Β· Lucent
- ubuntu stonking: 9base 1:6-15build1 Β· Lucent
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms