<aside> 💻
Master environment variables, variable assignment, and conditional logic in Bash. Learn how shells work, what PATH does, how to customize your prompt, and the critical dollar sign rule for variables. Commands are programs, PATH is everything, and the $ sign rule trips everyone up at first!
</aside>
export to make variables available to child processesls are compiled programs, not built-in commands= sign (name="value")variable=$(command) captures output$ when writing to variable, USE $ when reading from variableif [ condition ]; then for conditionals (spaces matter!)The dollar sign rule: Think of $ as "get the value" - you write without $, you read with $. This trips up everyone initially!
Commands are programs: ls, grep, cat aren't magic - they're compiled executables stored in PATH directories. You could write your own!
PATH is everything: Shell searches PATH directories left-to-right to find commands. First match wins.
Bash for assessments: Different shells (zsh, fish, csh) have different syntax. Stick to Bash for consistency.