FG
💻 Software

How can I find out where an environment variable (like PATH) was set?

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

Problem

I have a xterm with the bash shell in linux. When I , it is showing a directory and I want to know who put this directory in the . How can I find out? Thanks!

Error Output

echo $PATH

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I find out where an environment variable (like PATH) was set?

Low Risk

Assuming your login shell is bash, you could start looking in the following files: , and . If you invoke bash from another shell, then you might need to check what variables the other shell sets.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment