Skip to content

YK_blog

collect the daily development idea and remarks!

Tag: bashrc

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:找不到命令
Author yellowkingdomPosted on 2019-06-12Tags bashrc, sudo, ubuntuLeave a comment on Add command to sudo environment in ubuntu

Recent Posts

  • An introduce to xlsxwriter :)
  • An interesting problem for Spiral matrix!
  • Mysql add user and grant privilege
  • Python raw tcp data convert to int
  • Run gost in kcp mode to acelerate the access to website

Recent Comments

    Archives

    • October 2019
    • September 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019

    Categories

    • snippet

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

    vultr_promote

    vultr_promote_image
    YK_blog Proudly powered by WordPress