u/Western_Head_6650

▲ 15 r/linuxupskillchallenge+1 crossposts

Can someone explain the real-world usage of /etc/profile, profile.d, and bashrc?

Can anyone clearly explain the real-world usage of `/etc/profile`, `/etc/profile.d/`, and `/etc/bashrc` in Linux?

I’m getting confused between different explanations from ChatGPT and Gemini regarding login shells, non-login shells, interactive shells, and non-interactive shells.

From what I understood:

* `.bashrc` is mainly for interactive shell settings like aliases, prompts, etc. * `/etc/profile` and `/etc/profile.d/*.sh` are usually used for global environment variables like `PATH`, `JAVA_HOME`, `ORACLE_HOME`, etc.

But here is where I’m confused:

Some explanations say we should configure application paths and environment variables in `/etc/profile.d/` because they are needed system-wide.

But others say non-interactive or non-login shells (like cron jobs or scripts) do not automatically load `/etc/profile` or `.bashrc` at all.

So my doubts are:

  1. What is the actual real-world purpose of: * `/etc/profile` * `/etc/profile.d/` * `/etc/bashrc` * `.bash_profile` * `.bashrc`
  2. In enterprise environments, where should things like: * `PATH` * `JAVA_HOME` * aliases * prompt customization actually be configured?
  3. If cron jobs/scripts/services don’t automatically load these files, then why is `/etc/profile.d/java.sh` considered standard practice for Java setup?
  4. How do Linux admins usually handle environments for: * SSH users * cron jobs * systemd services * automation scripts

I’m trying to understand the practical production usage rather than only textbook explanations.

reddit.com
u/Western_Head_6650 — 1 day ago
▲ 2 r/redhat

Hi everyone,

I need some genuine guidance from experienced Linux/System Administrators.

I have around 2.5 years of experience, but most of my work has been in application support and unfortunately there is very little technical exposure or learning in my current role. I feel completely stuck in my career and I seriously want to transition into a Linux Administrator role.

I already know Linux basics, but now I want to learn advanced and real-time Linux administration properly — especially RHEL/Linux administration used in companies. I want to work on:

\- Real-time projects

\- Troubleshooting scenarios

\- Production-level tasks

\- Daily admin activities

\- Networking, storage, security, monitoring, scripting, etc.

\- Interview-level practical knowledge

My plan is to spend the next 6 months preparing seriously and switch to a proper Linux/System Administrator role.

Can anyone guide me with:

\- What skills/topics I should focus on first

\- Real-time project ideas

\- Labs or environments to practice

\- Communities/resources to learn from

\- How real Linux admins actually work daily in companies

\- How to gain confidence for interviews

If anyone has gone through a similar transition from support to infrastructure/Linux admin, your advice would really help me a lot.

Thank you.

reddit.com
u/Western_Head_6650 — 7 days ago
▲ 7 r/linuxupskillchallenge+1 crossposts

Hi everyone,

I need some genuine guidance from experienced Linux/System Administrators.

I have around 2.5 years of experience, but most of my work has been in application support and unfortunately there is very little technical exposure or learning in my current role. I feel completely stuck in my career and I seriously want to transition into a Linux Administrator role.

I already know Linux basics, but now I want to learn advanced and real-time Linux administration properly — especially RHEL/Linux administration used in companies. I want to work on:

- Real-time projects

- Troubleshooting scenarios

- Production-level tasks

- Daily admin activities

- Networking, storage, security, monitoring, scripting, etc.

- Interview-level practical knowledge

My plan is to spend the next 6 months preparing seriously and switch to a proper Linux/System Administrator role.

Can anyone guide me with:

- What skills/topics I should focus on first

- Real-time project ideas

- Labs or environments to practice

- Communities/resources to learn from

- How real Linux admins actually work daily in companies

- How to gain confidence for interviews

If anyone has gone through a similar transition from support to infrastructure/Linux admin, your advice would really help me a lot.

Thank you.

reddit.com
u/Western_Head_6650 — 7 days ago