Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
/usr/local/rvm/gems/jruby-1.7.3/bin:/usr/local/rvm/gems/jruby-1.7.3@global/bin:/usr/local/rvm/rubies/jruby-1.7.3/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

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

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

1 Answer 1

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

 
discard

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.