[CentOS] .bash_profile vs .bashrc [was: ssh-askpass in bash script]
Keith Keller
kkeller at wombat.san-francisco.ca.us
Sun Mar 2 21:04:07 UTC 2014
On 2014-03-02, Tim Dunphy <bluethundr at gmail.com> wrote:
>
> To my bashrc file. Also what's the difference between storing something
> like this in your bash_profile vs bashrc?
The difference between storing anything in .bash_profile versus .bashrc
is that .bash_profile is executed only for interactive login shells, and
.bashrc is executed only for interactive nonlogin shells (e.g., if you
type "bash" at a prompt). Read the man page for bash and look for the
INVOCATION section.
--keith
--
kkeller at wombat.san-francisco.ca.us
More information about the CentOS
mailing list