Jack_son_
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As Arnold has mentioned, the .bash files are optional.
Typically, you'd put your aliases and other settings in .bashrc
Typically, you'd put your aliases and other settings in .bashrc
.profile is used if no .bash_profile is present.
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
echo $SHELL would tell you which shell is in use
ASKER