Back to Developer Roadmap

Variables

src/data/roadmaps/linux/content/[email protected]

4.0779 B
Original Source

Variables

Shell variables store system or user-defined data that can change during script execution. Two categories exist: System Variables (PATH, HOME, PWD) created by Linux, and User-Defined Variables created by users. Define variables with = operator and retrieve values with $ prefix. Example: MY_VARIABLE="Hello World" then echo $MY_VARIABLE prints the value.

Visit the following resources to learn more: