echo $VAR
Read the value of an environment variable
echo $VARNAME prints the value. $PATH shows the command search path. $? shows the exit code of the last command (0=success, non-zero=failure).
Example
$ echo $PATH
$ echo $?
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
0
Tip: Type it yourself in the terminal below - reading is not the same as doing.