[xubuntu-users] shell tools

Len Philpot lphilpot01 at gmail.com
Sun Jan 8 16:02:19 UTC 2017


On 01/08/2017 09:24 AM, Ulli Horlacher wrote:

> Environment variables like PATH must be placed in /etc/profile or
> $HOME/.profile
>
> $HOME/.bash_aliases is for - oh-wonder! - bash aliases!
>
> Do not mix them!

You'll get a lot of varied opinions on this kind of topic, but 
~/.profile is actually where sh (Bourne) and ksh (Korn) shells get their 
per-account initialization / customization values (seems like ksh also 
reads ~/.kshrc, maybe? been a while).

There are probably other shells that read them as well. Bash does read 
them, but out of compatibility, as it does /etc/profile, IIRC. For bash, 
I usually put per-terminal-instance values in ~/.bashrc and general 
per-login values in ~/.bash_profile. From appearances, *unbuntu also 
uses /etc/bash.bashrc.

I typically don't stay on the leading edge of software, so I tend to use 
long-established conventions.

YMMV.

--

*Len Philpot*
lphilpot01 at gmail.com <mailto:lphilpot01 at gmail.com>
/Sent from Thunderbird on Xubuntu Linux/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/xubuntu-users/attachments/20170108/8fdea442/attachment.html>


More information about the xubuntu-users mailing list