InterviewSolution
| 1. |
What Are The Two Types Of Shell Variables? Explain In Brief? |
|
Answer» The TWO types of shell VARIABLES are: 1) Unix Defined Variables or System Variables – These are standard or shell defined variables. Generally, they are defined in CAPITAL LETTERS. Example: SHELL – This is a Unix Defined or System Variable, which defines the name of the default working shell. 2) User Defined Variables – These are defined by users. Generally, they are defined in lower letters Example: $ a=10 –Here the user has defined a variable called ‘a’ and assigned VALUE to it as 10. The two types of shell variables are: 1) Unix Defined Variables or System Variables – These are standard or shell defined variables. Generally, they are defined in CAPITAL letters. Example: SHELL – This is a Unix Defined or System Variable, which defines the name of the default working shell. 2) User Defined Variables – These are defined by users. Generally, they are defined in lower letters Example: $ a=10 –Here the user has defined a variable called ‘a’ and assigned value to it as 10. |
|