About Lesson
-
Defining Variables:
-
Syntax:
variable_name=value
-
Example:
name="Linux"
-
-
Accessing Variables:
-
Syntax:
$variable_name
-
Example:
echo "Welcome to $name!"
-
-
Environment Variables:
-
Access system-wide variables like
$HOME
,$PATH
.
-
-
Command Substitution:
-
Syntax:
$(command)
-
Example:
date=$(date)
-