Read command - The read command allows you to prompt for input and store it in a variable. shell allows to prompt for user input. Syntax: read varname [more vars] or read –p "prompt" varname [more vars] words entered by user are assigned to varname and “more vars” last variable gets rest of input line.