mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-28 09:58:17 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
9 lines
779 B
Markdown
9 lines
779 B
Markdown
# 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:
|
|
|
|
- [@article@Learning The Shell](https://www.linuxcommand.org/lc3_lts0010.php)
|
|
- [@article@How to Use Variables in Bash Shell Scripts](https://linuxhandbook.com/bash-variables/)
|
|
- [@article@How To Read and Set Environmental and Shell Variables](https://www.digitalocean.com/community/tutorials/how-to-read-and-set-environmental-and-shell-variables-on-linux) |