FG
💻 Software

.profile or .bash_profile

Fresh5 days ago
Mar 15, 202636442 views
Confidence Score0%
0%

Problem

I'm confused, where do I set environmental variables? In .profile or in .bash_profile? I am using both mac osx and ubuntu. Confused as to which one I use here.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: .profile or .bash_profile

Low Risk

read http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files: other shells load as well (zsh, tcsh) .. so, i would put environment stuff into . mac osx related update (thanks @Matt B): for gui programs read http://developer.apple.com…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment