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.

Required fields*

4
  • 1
    You really should be putting a .sh file in /etc/profile.d/ rather than editing /etc/bashrc. Commented Apr 27, 2020 at 23:18
  • @jsbillings: Thanks for the comment. Why is editing /etc/bashrc not recommended? Commented Apr 28, 2020 at 2:26
  • 1
    You want the OS to be able to update that file, since it is owned by a package. Modifying it will prevent the “bash” package from ever updating that file. Commented Apr 28, 2020 at 17:40
  • @jsbillings : stackoverflow.com/questions/61568921/… Commented May 3, 2020 at 2:33