help-bash
[Top][All Lists]
Advanced

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

Re: defaultly made ./configure && make install path question


From: Greg Wooledge
Subject: Re: defaultly made ./configure && make install path question
Date: Sun, 14 Mar 2021 17:50:06 -0400

On Sun, Mar 14, 2021 at 10:32:42PM +0100, Alex fxmbsw7 Ratchev wrote:
> it installs to /usr/local/bin by default
> i cp'ed it to /bin, as im a prefix whatever gcc make noob
> 
> so my question
> will it read /usr/local/etc/profile or both also /etc/profile but also in
> local/

Bash reads the same set of files regardless of where you put the binary.
Programs don't know where they reside within your file system(s).  They
simply read the files that they've been programmed to read.

See also <https://mywiki.wooledge.org/BashFAQ/028>.

The files that bash reads are documented in the INVOCATION section of
the manual.

An interactive login shell reads /etc/profile if it exists.  Then it
reads one of the three files in your home directory (searching in the
order specified in the manual, stopping at the first one which exists).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]