InterviewSolution
| 1. |
What Are The Different Type Of Variables Used In A Shell Script? |
|
Answer» In a SHELL script we can use TWO types of variables:
System defined variables are defined or created by Operating System (Linux) itself. These variables are generally defined in Capital Letters and can be viewed by “set” command. User defined variables are created or defined by system USERS and the values of variables can be viewed by using the command “echo $<Name_of_Variable>”. In a shell script we can use two types of variables: System defined variables are defined or created by Operating System (Linux) itself. These variables are generally defined in Capital Letters and can be viewed by “set” command. User defined variables are created or defined by system users and the values of variables can be viewed by using the command “echo $<Name_of_Variable>”. |
|