sudo: source: command not found
- by HorusKol
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?