Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have 3 machines that using Debian 6.0.7 for PPC

when i logged in using SSH, one of it's $PATH variables is somehow different than other two

# echo $PATH

# echo $PATH

i wonder, which files got executed on that machine when i'm using SSH? i already checked .bashrc, but nothing there that similar to

share|improve this question
Check /etc/profile and /etc/bash.bashrc, it's probably in one of those. – parkydr Feb 27 '13 at 10:31
ah thank you so much :3 it's on /etc/profile – Kokizzu Feb 27 '13 at 11:11
up vote 2 down vote accepted

/etc/profile is called on login, whether normal or via ssh.

/etc/bash.bashrc contains global bash settings and is called when bash is executed as well as your individual .bashrc

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.