I logged on to my Linux server (Redhat AS4) through SSH as the user 'guest', then run the command echo $PATH
, and the output is /usr/local/bin:/bin:/usr/bin
.
However, when I run the command su - guest
to switch to the same user, then run the command echo $PATH
, the output becomes /usr/bin:/bin:/usr/local/bin
.
Why the same user has different PATH value on Linux server? That makes me get different Python versions and I don't know what causes this problem.