Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6608363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:36:06+00:00 2026-05-25T19:36:06+00:00

When someone says edit your .plist file or your .profile or .bash_profile etc, this

  • 0

When someone says “edit your .plist file” or “your .profile” or “.bash_profile” etc, this just confuses me. I have no idea where these files are, how to create them if I have to do that, etc, and also why there seem to be so many different ones (why? Do they do different things?)

So could someone please explain very patiently to a previous Windows user (wanting desperately to become more familiar with the pleasant if initially somewhat confusing OS X world) how to do this step by step?

I need the variables to be set both for GUI applications and command line applications, and at the moment it’s for an ant script that needs the variables, but there will most likely be other needs as well.

Please note that I have Lion too, since many of the answers you get Googling seem to be outdated for Lion…

Also note that I have practically zero experience using the Terminal. I’m willing to learn, but please explain for a novice…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:36:07+00:00Added an answer on May 25, 2026 at 7:36 pm

    First, one thing to recognize about OS X is that it is built on Unix. This is where the .bash_profile comes in. When you start the Terminal app in OS X you get a bash shell by default. The bash shell comes from Unix and when it loads it runs the .bash_profile script. You can modify this script for your user to change your settings. This file is located at:

    ~/.bash_profile
    

    Update for Mavericks

    OS X Mavericks does not use the environment.plist – at least not for OS X windows applications. You can use the launchd configuration for windowed applications. The .bash_profile is still supported since that is part of the bash shell used in Terminal.

    Lion and Mountain Lion Only

    OS X windowed applications receive environment variables from the your environment.plist file. This is likely what you mean by the “.plist” file. This file is located at:

    ~/.MacOSX/environment.plist
    

    If you make a change to your environment.plist file then OS X windows applications, including the Terminal app, will have those environment variables set. Any environment variable you set in your .bash_profile will only affect your bash shells.

    Generally I only set variables in my .bash_profile file and don’t change the .plist file (or launchd file on Mavericks). Most OS X windowed applications don’t need any custom environment. Only when an application actually needs a specific environment variable do I change the environment.plist (or launchd file on Mavericks).

    It sounds like what you want is to change the environment.plist file, rather than the .bash_profile.

    One last thing, if you look for those files, I think you will not find them. If I recall correctly, they were not on my initial install of Lion.

    Edit: Here are some instructions for creating a plist file.

    1. Open Xcode
    2. Select File -> New -> New File…
    3. Under Mac OS X select Resources
    4. Choose a plist file
    5. Follow the rest of the prompts

    To edit the file, you can Control-click to get a menu and select Add Row. You then can add a key value pair. For environment variables, the key is the environment variable name and the value is the actual value for that environment variable.

    Once the plist file is created you can open it with Xcode to modify it anytime you wish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The title pretty much says it all, but just to clarify: I have an
I think it should be 01 but someone says its undefined, any reason for
Most projects now need some form of a database. When someone says database, I
Someone told me about a C++ style difference in their team. I have my
Someone told me that it's faster to concatenate strings with StringBuilder. I have changed
Someone at work just asked for the reasoning behind having to wrap a wait
Just as the title says. I want to write a script that behaves differently
This is just another working in dev server, why not working in IIS type
I need your help, i'm stacked on this project. When i run my applicaion
I have a large text file I need to sort in Java. The format

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.