A majority of terminal commands don\'t work, for example .
ls sudo vi
with the error -bash: ls: command not found my path is echo
-bash: ls: command not found
echo
You need to add more paths to your $PATH variable. Try running whereis ls and check where is the binary of the command.
whereis ls
You can add more paths like this: export PATH=$PATH:NEW_PATH
export PATH=$PATH:NEW_PATH