Shell Investigation
Core Idea
Shell investigation means using small commands to turn an unknown system problem into evidence.
Bandit is not the concept. Bandit is practice. The transferable skill is evidence-driven investigation with files, permissions, encodings, search, and pipelines.
Loop
- Read the exact prompt or error.
- Inspect the path with
ls -la,file, orstat. - Read small text with
cat,less,head, ortail. - Search with
grepwhen output is large. - Use
strings,xxd, orbase64only when bytes stop being plain text. - Record the command that changed your understanding.
Example Pattern
file suspicious
strings suspicious | less
strings suspicious | grep -i password
Watch Out
Do not jump to random commands. Every command should answer one question.
Docs Pointers
- Read file, strings, regular expressions, file encoding, and pipes.

Linux Foundations