Fixing Linux 'command not found' (ls·vi·vim) — Restoring the PATH
When you overwrite PATH on Linux/macOS and basic commands like ls·vi·vim stop working with 'command not found' — check with echo $PATH and restore the base paths (/bin, /usr/bin, etc.) with export PATH, plus how :$PATH preserves the existing paths.

