What are the shell variables in Unix?

What are the shell variables in Unix?
Answer
Unix / Linux – Using Shell Variables
  • Defining Variables. Variables are defined as follows − variable_name=variable_value. …
  • Accessing Values. To access the value stored in a variable, prefix its name with the dollar sign ($) − …
  • Read-only Variables. Shell provides a way to mark variables as read-only by using the read-only command. …
  • Unsetting Variables.
 

Tìm kiếm

Back
Top