Variable Assignment in Shell

Level 112 keystrokes

Variables are assigned without spaces around the equals sign.

Shell code

# Assigns the string World to the variable name (no output)
# No spaces around =: name = "World" would run a command called name
1name="World"
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Shell code and how often they appear.

  • "× 2
  • =× 1

More Shell examples at level 1

← Shell typing practice