Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer

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

share|improve this answer

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.

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.