Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 15
    Provided that it is run as the login shell, which isn't the default (e.g. in Alpine Linux / Docker) Commented Feb 1, 2017 at 10:29
  • 3
    @JakubHolý did you find a way to run profile script for non-login shell? Commented Nov 28, 2017 at 13:20
  • 1
    @DavidLukac - See my other Answer here for non-login shells. Commented Jan 22, 2018 at 0:21
  • What do you mean by "first" reads these files? Will it do something else afterwards? Commented Feb 16, 2020 at 2:47
  • 2
    Those are equivalent of .profile, the question is about .bashrc. Commented Nov 29, 2022 at 20:51