I have a xterm with the bash shell in linux. When I
echo $PATH, it is showing a directory and I want to know who put this directory in the
PATH. How can I find out?
Assuming your login shell is bash, you could start looking in the following files:
You probably cannot discover who, but you can find out which file is setting that. Look a the Bash documentation for the startup files. There are several that bash processes on startup to set $PATH and the other environment variables.