Solved

.bash_profile is not being executed

Posted on 2007-04-10
1
490 Views
Last Modified: 2013-12-06
The .bash_profile is not being executed when we are invoking the bash profile.

To execute this shell script I have to specifically run

. .bash_profile

Then only the commands in .bash_profile is being executed.
How to make .bash_profile to be executed when we call the bash shell?


OS: Red Hat Enter PRise linux Advanced Server4
0
Comment
Question by:durgap
1 Comment
 
LVL 58

Accepted Solution

by:
amit_g earned 500 total points
Comment Utility
~/.bash_profile is executed only if the shell is a login shell i.e. when you log in or bash is invoked with --login option. Also it should be in the HOME directory. When is it not executed?
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now