35.7 Common Variables: HOME, USER, SHELL, TERM, EDITOR, LANG
Right, let’s talk about the environment. No, not the one with trees and guilt—I’m talking about your shell’s environment. It’s the collection of key-value pairs that every program you run inherits. Think of it as a cheat sheet you hand to every application so it knows how to behave. Get these wrong, and otherwise sane programs will start doing the weirdest things. Let’s break down the usual suspects. The Absolute Non-Negotiables: HOME, USER, SHELL These are the bedrock. Your HOME directory is your user’s throne room. It’s where your files live, your preferences are stored, and where most programs will start looking for your stuff by default. It’s set automatically at login, and you should never, ever change it manually. Just don’t.