To get all the system environment Variables: printenv.
printenv
To get one by its name: echo $PATH.
echo $PATH
To modify it: export $PATH="/usr/local/sbin:/usr/local/bin".
export $PATH="/usr/local/sbin:/usr/local/bin"