Table of Contents

What is the .baschrc file?

About

.bashrc is a startup script that is executed by bash for:

The rc stands for runtime configuration.

You can overwrite it with the –rcfile file bash options

How to execute bashrc also for a login shell

In login script (ie /etc/profile)

if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi