Bash Shell

Hi,

I am using Debian Linux, but am unable to locate .bash_profile.  Where is this stored in the OS?  ALso, how can you tell which shell is in use?

Thanks
Jack
Jack_son_Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

savoneCommented:
There are two, one is usually in your home directory and the other in /etc

You can find them with this command:

find / -name ".bash_profile"
0
Jack_son_Author Commented:
no results come back from the search
0
arnoldCommented:
Usually, in /etc/skel
This is the directory used when adding a new user with the -m -k /etc/skel

ls -la ~/

To confirm, your user's shell is bash.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Jack_son_Author Commented:
okay, i see these items here:

drwxr-xr-x   2 root root 4096 Feb 19  2013 .
drwxr-xr-x 102 root root 4096 Aug 21 00:15 ..
-rw-r--r--   1 root root  220 Dec 30  2012 .bash_logout
-rw-r--r--   1 root root 3392 Dec 30  2012 .bashrc
-rw-r--r--   1 root root  675 Dec 30  2012 .profile

is it one of the last 2?
0
arnoldCommented:
.bash_profile is not a requirement.
None of these files are required.
They are often setup by admins to assist the users such that commands are in the search path as well as have some standardized settings.
Depending on the admin, they could have a centralized in /etc while the files within the skel directory reference the central config.

What in particular are you trying to achieve?
0
TintinCommented:
As Arnold has mentioned, the .bash files are optional.

Typically, you'd put your aliases and other settings in .bashrc
0
gheistCommented:
.profile is used if no .bash_profile is present.
0
Jack_son_Author Commented:
Okay, i will try .profile.  I am trying to set Java Home.
0
gheistCommented:
Generally you should not, as system-supplied java is found automatically by TOMCAT etc.
0
arnoldCommented:
/etc/Profile
Also look at sshd service which is presumably the means by which users connect in.
If as gheist pointed out, this relates to anapp, adding the definitions of java_home in the service start script should resolve this issue.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vinu PhilipTechnology LeadCommented:
echo $SHELL would tell you which shell is in use
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.