Fixing Linux 'command not found' (ls·vi·vim) — Restoring the PATH
When overwriting PATH on Linux or macOS breaks commands like ls, vi, and vim with 'command not found' — check echo $PATH and restore base paths via export.
2 posts

When overwriting PATH on Linux or macOS breaks commands like ls, vi, and vim with 'command not found' — check echo $PATH and restore base paths via export.

Why Windows CMD's cd can't switch drives and you must type 'D:' to move from C: to D — Windows gives each drive its own root, unlike Linux's single root.