Two types of variables exists in a Linux shell:
- Environment Variable: It is inherited by all spawned child processes and shells.
- Shell Variable: It is a variable that applies only to the current shell instance.
Following command defines a shell variable:
$ HQ="LEVENT
To convert a shell variable to environment variable following command can be used.
$ export $HQ