当我运行$tmux
并打开 tmux 会话的实例并尝试运行命令时,ls
我收到以下错误:
∆ ls
Command 'ls' is available in the following places
* /bin/ls
* /usr/bin/ls
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
ls: command not found
答案1
在调用 tmux 之前和之后检查您的 PATH
echo $PATH
然后检查你的~/.bash_profile
.那里一定有什么东西超越了你当前的$PATH
。