• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 575
  • Last Modified:

location of . bash profile

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

1 Solution
it is in your home directory

ls -a |grep bash

Open in new window

it should be in the user's home directory wit the name .bash_profile
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
It should be under
echo ~
nobleitAuthor Commented:
found the location of . bash_profile..

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.

Join & Write a Comment

Featured Post

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now