Boot2Root / Command Mistakes & Recovery
bash: command not found on the target
1. Error or symptom
A tool you rely on (python3, curl, nc) doesn't exist on the target.
2. Likely cause
Minimal target OS/container image; the tool simply isn't installed.
3. How to verify
which TOOL_NAME; compgen -c | grep -i partial_name to check for alternatives.
4. Correct command
which python python3 python2 nc ncat curl wget perl
5. Recovery procedure
Fall back to whatever interpreter IS present (perl/python2/awk) to build a reverse shell or transfer files.
6. How to avoid repeating it
Keep a mental list of alternate one-liners (bash /dev/tcp, perl, awk, php) for when the 'default' tool is missing.