Re: root .bash_profile?

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



Once upon a time, Bee.Lists <bee.lists@xxxxxxxxx> said:
> No, this isn’t a case of multi partitions, clusters, or anything silly.  I just want a set of aliases loaded for su.  /root/.bash_profile isn’t loading, and there isn’t any obvious choice as to where the loaded .bash* were loading from.  

.bash_profile will not be read when you just run "su", because
.bash_profile is read in a login shell, and "su" does not create a login
shell.

.bashrc will be read (and is really where aliases belong anyway), or you
can "su -" to create a login shell.
-- 
Chris Adams <linux@xxxxxxxxxxx>
_______________________________________________
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