2

Is there an advantage over using /etc/profile over /home/pi/.profile? And when to choose which one to use?

  • When it comes to configuration files, they usually either work or are completely ignored. Not sure if the former can be called an advantage. – Dmitry Grigoryev Mar 8 '17 at 10:18
2
  • /etc/profile is used for all users
  • /home/pi/.profile is only used for the pi user

So if you only use the pi user, no effective difference.

|improve this answer|||||
  • 1
    /home/pi/.profile is likely to be ignored altogether if /home/pi/.bash_profile is present (which I believe is the case). – Dmitry Grigoryev Mar 8 '17 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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