0

Is there a way (in UNIX) to trace how my $PATH is set?

I have an entry in my path that I don't want, but I just can't find the source to remove it for good. I am running Solaris 10 and CSH.

hoang
  • 1,887
  • 1
  • 24
  • 34
Zubizaretta
  • 157
  • 1
  • 9

1 Answers1

0

It is set in /home/<your_user>/.profile or /home/<your_user>/.bash_profile.

Check it doing

grep -l PATH /home/<your_user>/.* 2>/dev/null

that will point the .files that are defining this variable.

fedorqui
  • 275,237
  • 103
  • 548
  • 598