![帮助解决该案](https://linux22.com/image/990227/%E5%B8%AE%E5%8A%A9%E8%A7%A3%E5%86%B3%E8%AF%A5%E6%A1%88.png)
adel@Adel:~$ sudo su
[sudo] password for adel:
PATH: command not found
PATH: command not found
Command 'lesspipe' is available in the following places
* /bin/lesspipe
* /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
root@Adel:/home/adel#
答案1
在您的 中.bashrc
,您有一个Space介于PATH
和之间=
。这会让 shell 的解析器认为PATH
是一个命令。