Terminal commands can not be found OSX

前端 未结 1 1979
借酒劲吻你
借酒劲吻你 2021-01-24 04:20

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

相关标签:
1条回答
  • 2021-01-24 05:10

    You need to add more paths to your $PATH variable. Try running whereis ls and check where is the binary of the command.

    You can add more paths like this: export PATH=$PATH:NEW_PATH

    0 讨论(0)
提交回复
热议问题