Master shell configuration and environment variables. Learn to customize your shell with aliases, manage PATH, set environment variables, and configure startup files like .bashrc and .zshrc.
See what environment variables are currently set.
envprintenvecho $HOMEecho $USERecho $SHELLecho $PATHEnvironment variables are key-value pairs available to all programs. env/printenv show all variables. $HOME is your home directory. $USER is username. $SHELL is your shell. $PATH lists directories searched for commands.
env shows many variables. echo $HOME shows /home/username or /Users/username. $USER shows your username. $SHELL shows /bin/bash or /bin/zsh. $PATH shows colon-separated directories.