环境变量的名字一般都是大写
显示所有的环境变量
$ env
显示环境变量HOME的值
$ echo $HOME
设置一个新的环境变量WELCOME
$ export WELCOME="Hello!"
$ export $WELCOME
Hello!
env
env是一个外部命令,程序文件/bin/env,用于列出所有环境变量及其赋值。
export
设置环境变量
echo
显示文字,打印文字
set
用来显示本地变量,显示当前shell的变量,包括当前用户的变量