Solved

Where is the .bash_profile located in cygwin

Posted on 2008-10-02
8
1,093 Views
Last Modified: 2013-11-15
Where is the .bash_profile located in cygwin?
0
Comment
Question by:dplinnane
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 9

Accepted Solution

by:
mbodewes earned 200 total points
ID: 22627555
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
ID: 22627962
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
ID: 22628003
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 9

Assisted Solution

by:mbodewes
mbodewes earned 200 total points
ID: 22628069
Or just create it, put in an "echo This works" statement in there and startup a new console, of course :)
0
 

Author Comment

by:dplinnane
ID: 22629086
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
ID: 22629408
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
ID: 22638485
To create it, just do

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

Author Closing Comment

by:dplinnane
ID: 31502517
Thanks guys.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Looking for a 3rd party File/Folder explorer(Windows) software 5 54
NFS v4 7 76
How to check if the Cron job is running or not ? 12 87
watsup photo saving 6 22
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Invest in your employees with these five simple steps to improve employee engagement and retention.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

734 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