Solved

Where is the .bash_profile located in cygwin

Posted on 2008-10-02
8
1,080 Views
Last Modified: 2013-11-15
Where is the .bash_profile located in cygwin?
0
Comment
Question by:dplinnane
  • 4
  • 3
8 Comments
 
LVL 9

Accepted Solution

by:
mbodewes earned 200 total points
Comment Utility
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
 

Author Comment

by:dplinnane
Comment Utility
So it should be in HOME=/cygdrive/c/Documents and Settings/jsmith    where the .bashrc is located?
0
 
LVL 9

Assisted Solution

by:mbodewes
mbodewes earned 200 total points
Comment Utility
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
 
LVL 9

Assisted Solution

by:mbodewes
mbodewes earned 200 total points
Comment Utility
Or just create it, put in an "echo This works" statement in there and startup a new console, of course :)
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 

Author Comment

by:dplinnane
Comment Utility
when I do printenv I see lots of variables where are they stored?
0
 
LVL 9

Assisted Solution

by:mbodewes
mbodewes earned 200 total points
Comment Utility
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
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 50 total points
Comment Utility
To create it, just do

echo 'some contents' >>~/.bash_profile
0
 

Author Closing Comment

by:dplinnane
Comment Utility
Thanks guys.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now