The difference between the set and export
set can be used to display the values of all variables, and can export a variable export, can also be found in its child shell or sub-process
The difference between export and env
The role of both is the same, except that env is an external tool
Basic Usage
Simply use the set, you can see all the current shell variables are defined, including local and export; unset can be used to delete a variable
use of export (env) can see all the variables exported (ie environment variable); use of export VARIABLE define an environment variable, or export to a local variable environment variable.