Linux sudo error: command not found

Some commands work fine without sudo but with sudo  you got errors like this:

This may cause by settings of sudo that replace the¬†environment variable “PATH“. To fix this, you can comment the line “Defaults>–secure_path” in the file “/etc/sudoers”

Leave a Reply

Your email address will not be published. Required fields are marked *