|
Answer» Shell scripts usually have two types of variables: - System-defined variables: ALSO CALLED environment variables, these are special built-in variables in the Linux kernel for each shell. They are normally defined in capital letters by the OS (Linux) and are standard variables.
Example: SHELL It is a Unix Defined or System Variable, which specifies the default working shell. - User-defined variables: These variables are created and defined by users in order to store, access, read, and manipulate DATA. In general, they are defined in lowercase letters. The Echo command allows you to view them.
Example: $ a=10 In this CASE, the user has defined the variable ‘a’ and assigned it the value 10.
|