Where is the .bash_profile located in cygwin

Where is the .bash_profile located in cygwin?
dplinnaneAsked:
Who is Participating?
 
mbodewesConnect With a Mentor Commented:
Where it always is: in the root of your home folder. I don't think one is created during setup though, so you must create it yourself.
0
 
dplinnaneAuthor Commented:
So it should be in HOME=/cygdrive/c/Documents and Settings/jsmith    where the .bashrc is located?
0
 
mbodewesConnect With a Mentor Commented:
Yes. I presume that is where your home folder is? You can find out by using pwd after starting up the bash prompt. I've moved my home folder myself.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
mbodewesConnect With a Mentor Commented:
Or just create it, put in an "echo This works" statement in there and startup a new console, of course :)
0
 
dplinnaneAuthor Commented:
when I do printenv I see lots of variables where are they stored?
0
 
mbodewesConnect With a Mentor Commented:
Oh, they are generated from everywhere and anywhere. Some values are from the registry, some are environment settings also available in Windows/DOS. Some are adjusted DOS variables (like the PATH) environment. Some are just created by cygwin itself (such as the TERM variable). Normally you don't "store" environment variables.

0
 
TintinConnect With a Mentor Commented:
To create it, just do

echo 'some contents' >>~/.bash_profile
0
 
dplinnaneAuthor Commented:
Thanks guys.
0
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.

All Courses

From novice to tech pro — start learning today.