Sudo can not find on the use of environment variables

Reference here: https://www.cnblogs.com/zhongshiqiang/p/10839666.html

 

Use sudo -E to retain the current user environment, then there would not be a problem can not find the environment variable.

 

Guess you like

Origin www.cnblogs.com/hark0623/p/11946778.html