Link to home
Start Free TrialLog in
Avatar of Jack_son_
Jack_son_Flag for Afghanistan

asked on

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
SOLUTION
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jack_son_

ASKER

no results come back from the search
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tintin
Tintin

As Arnold has mentioned, the .bash files are optional.

Typically, you'd put your aliases and other settings in .bashrc
.profile is used if no .bash_profile is present.
Okay, i will try .profile.  I am trying to set Java Home.
Generally you should not, as system-supplied java is found automatically by TOMCAT etc.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
echo $SHELL would tell you which shell is in use