sudo: source: command not found
Posted
by
HorusKol
on Ask Ubuntu
See other posts from Ask Ubuntu
or by HorusKol
Published on 2011-01-10T22:25:35Z
Indexed on
2011/01/10
22:59 UTC
Read the original article
Hit count: 297
I've been updating some of the default profile for bash, and saw from the tutorials I was following that I could reload the new profile with the new environment settings by using:
source /etc/bash.bashrc
The only thing is - the new environment variables were only available to my current user - and were ignored when I used sudo. They only became available to sudo when I closed my terminal session and rejoined.
When I try to use:
sudo source /etc/bash.bashrc
I get the error:
sudo: source: command not found
Is there a simple way to load in the new bash profile settings for sudo without having to close the terminal and restart?
© Ask Ubuntu or respective owner