location of . bash profile

can any expert tell me where is the location of . bash profile..

nobleitAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

maeltarCommented:
it is in your home directory

ls -a |grep bash

Open in new window


http://hacktux.com/bash/bashrc/bash_profile
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
omarfaridCommented:
it should be in the user's home directory wit the name .bash_profile
0
Wasim Akram ShaikCommented:
.file is a hidden file which can be seen by using the ls command with a option.

ie. ls -alrt *profile*

Generally, .profile, .bash_profile. bash_history etc., can be found be under a user home directory. ie., when you login to the any machine, by default you will get logged into $HOME directory of that particular user.

Else if you have a root login, you can go to any user home directory and change the .bash_profile accordingly by this way.

login to root

and do su -username

you should have been logged into /home/username

locate ls -alrt *.bash*

you will get the hidden file .

alternatively when you get logged in as a normal user.
do cd $HOME or type cd /home/username

and locate the bash file as mentioned above
0
farzanjCommented:
It should be under
echo ~
0
nobleitAuthor Commented:
found the location of . bash_profile..

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 OS Dev

From novice to tech pro — start learning today.