3

I am setting up Apache Tomcat on my OS X 10.6.2 and need to know where my .profile file is, for setting environment variables. I thought it was in the root of my home directory, but I cannot find it.

Skyhawk
  • 14,200
  • 4
  • 53
  • 95

4 Answers4

3

The .profile file isn't created by default.

To set the environment variables make a file called .profile in the root of your home directory (/Users/<yourshortname>/ or ~/ for short) and put the necessary variables in it. Tomcat will find it automatically based on the name.

blahdiblah
  • 179
  • 1
  • 7
2

Users don't get a profile by default -- they use the systemwide shell at /etc/profile.

duffbeer703
  • 20,797
  • 4
  • 31
  • 39
0

It may not be created, but should source successfully if you create a new file at ~/.profile. Try a simple alias or something similar and see if it works.

0

Old but still relevant: bash on Mac OS X - O'Reilly Media

markratledge
  • 519
  • 5
  • 13
  • 26