Love your BASHers! .bashrc vs. .bash_profile

.bash_profile

Before anything else, let’s look up what BASH is.

https://en.wikipedia.org/wiki/Bash_(Unix_shell)

https://www.quora.com/What-is-bash-and-shell-in-Linux

Basically, BASH is a type of shell. A shell is an interpreter of commands in a command line environment. We use BASH and it’s syntax to instruct a computer to do things aka as programming.

For every environment, we have settings to configure. .bashrc and .bash_profile does that for us.

We declare our setting in these files. An example would be the PATH.

The difference between the .bashrc and .bash_profile is that the .bash_profile is used on login environments. By default, when we login to a terminal the .bash_profile will be used.

If the environment or application doesn’t need any login permissions, .bash_rc will be used.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s