Asking Questions: read

read waits for the user to type a line and keeps it in a variable: -p shows a question first, -s hides what's typed, and ${name:-default} gives an answer that was left empty a default.

Updated

Cheat sheet for the lesson Asking Questions: read: read waits for the user to type a line and keeps it in a variable: -p shows a question first, -s hides what's typed, and ${name:-default} gives an answer that was left empty a default.
Category
Bash
Level
Apprentice
Tags
linux, read, shell-variable, standard-streams, unix