Solved

Where is the .bash_profile located in cygwin

Posted on 2008-10-02
8
1,086 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
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

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…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
This video demonstrates basic masking and how to edit the mask to reveal the desired image.
Viewers will learn how to use the Hootsuite Dashboard.

810 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