[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: does /etc/profile get sourced also when .profile exists ?
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: does /etc/profile get sourced also when .profile exists ? |
Date: |
Mon, 26 Jul 2021 16:17:11 +0200 |
thank you also
On Mon, Jul 26, 2021, 16:12 Greg Wooledge <greg@wooledge.org> wrote:
> On Mon, Jul 26, 2021 at 03:57:16PM +0200, Alex fxmbsw7 Ratchev wrote:
> > ..
>
> Please put the question in the BODY of your email, not in the Subject:
> header.
>
> man bash -> INVOCATION ->
>
> When bash is invoked as an interactive login shell, or as a
> non-inter‐
> active shell with the --login option, it first reads and executes
> com‐
> mands from the file /etc/profile, if that file exists. After
> reading
> that file, it looks for ~/.bash_profile, ~/.bash_login, and
> ~/.profile,
> in that order, and reads and executes commands from the first one
> that
> exists and is readable. The --noprofile option may be used when
> the
> shell is started to inhibit this behavior.
>
>
>