.bash_profile vs .bashrc [was: ssh-askpass in bash script]

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



On 2014-03-02, Tim Dunphy <bluethundr@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxxxxx


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://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