Add command to sudo environment in ubuntu

$ sudo vim /etc/sudoers
# modify line "Default env_reset" to "Default !env_reset"

$ sudo vim ~/.bashrc
# add line to the bottom "alias sudo='sudo env PATH=$PATH'"

$ source ~/.bashrc
# enable the new config

https://blog.csdn.net/qq_34296627/article/details/82828545

Ubuntu sudo: pip:找不到命令

Leave a Reply

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