每当我输入 neofetch 时,都会出现此错误:
Command 'neofetch' is available in the following places
* /bin/neofetch
* /usr/bin/neofetch
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
neofetch: command not found
我运行的许多其他命令也会出现这种情况。以下是我运行 echo $PATH 时发生的情况:
$HOME/.local/bin:$PATH
答案1
要解决此问题,请在终端中使用此命令
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"