首页 > 代码库 > sudo:*:command not found

sudo:*:command not found

原因:执行sudo后,sudo会根据visudo里面配置的secure_path来找寻命令,所以sudo尽量使用绝对路径

sudo bash-c "echo $PATH"也可以看到sudo的PATH

 

http://stackoverflow.com/questions/32020594/sudo-pip-command-not-found-in-centos

sudo:*:command not found