Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

4 Answers 4

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

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

Your Answer

 
discard

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