Re: root .bash_profile?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



OK, I haven’t tested for that loadup yet, and the .bashrc is indeed there.  I thought .bashrc was loaded first, then .bash_profile.  This is for normal user.  

Just tested it again, and /root/.bash_profile is not loading.  Tried this in /root/.bashrc:

source /root/.bash_profile

That created a loop, because that reverse instruction is inside /root/.bash_profile

So for some reason, entering su isn’t loading its own .bash_profile nor keeping my user’s .bash_profile (expected).  

Any ideas?


> On May 13, 2019, at 8:49 AM, ja <ja@xxxxxxxxxx> wrote:
> 
> I have an alias in /root/.bashrc
> alias sbp='source ~/.bash_profile'
> 



Cheers, Bee




_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux