What is Boundary Value Analysis?
What is Boundary Value Analysis?
January 3, 2023
Potential risks of Automation Testing Tools
Potential risks of Automation Testing Tools
January 17, 2023

January 10, 2023

Two types of variables in a shell

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
Two types of variables in a shell
This website uses cookies to improve your experience. By using this website you agree to our Data Privacy Statement
Read more