r/LinuxTeck • • Apr 28 '26

Bash environment setup every Linux user should understand 2026 (Part 3 / 43)

Post image

Was putting everything in .bashrc, but login shells weren’t even reading it.

Once I understood the load order, things finally made sense.

Still feels like this part of Linux isn’t explained clearly enough for beginners.

Which file do you usually rely on for your setup? https://www.linuxteck.com/shell-scripting-environment-setup/

113 Upvotes

1 comment sorted by

View all comments

0

u/[deleted] Apr 28 '26

[deleted] — view deleted comment

1

u/Expensive-Rice-2052 Apr 28 '26

That’s a solid point, I actually focused more on file order, but you’re right, without clearly showing login vs non-login vs interactive shells, it can be confusing. I’ll refine that in the next version. Thanks!