Linux Fundamentals

Environment Variables and Shell Startup

Distinguish shell variables from exported environment, understand Bash startup files, and diagnose configuration without editing all profile files.

Beginner14 min read
Linux Fundamentals lessonLinuxPractice

UNTIMED COACHING

Practice before the pressure

Use feedback to correct the model, not merely memorize an option position.

GUIDED PRACTICE

Practice the lesson questions

Answer normal lesson questions without a timer. Every answer includes an explanation, and incorrect answers can be tried again before continuing.

CONCEPT MODELS

See the lesson as a system

Use these visual guides to connect the key ideas before answering the questions.

From Shell variables to Login startupConnect shell variables with exported environment, command lookup path, and login startup.
From Shell variables to Login startupA learning path connects four specific concepts used in environment variables and shell startup and states the outcome of each one.
Shell variablesA value exists in the current shell
Exported environmentChild processes inherit the exported value
Command lookup pathCommand lookup follows the directory order
Login startupLogin configuration loads from one profile
Interactive startup: command and checksConnect interactive startup with the starting command, expected result, and specific safety boundary.
Interactive startup: command and checksA practical check connects interactive startup to the relevant command, expected evidence, and caution.
Interactive startupFocus on interactive startup
Starting commandRun bash --noprofile --norc for a clean test
Expected resultInteractive settings load in new terminal shells
Safety boundaryNoninteractive scripts may not read bashrc