179k views
1 vote
Which shell command accepts input from the user's keyboard?

A) echo
B) read
C) gets input
D) $1

User Ben Davis
by
8.4k points

1 Answer

3 votes

Final answer:

The read command in the shell accepts input from the user's keyboard.

Step-by-step explanation:

The shell command that accepts input from the user's keyboard is the read command. The read command is used to read a line of input from the keyboard and store it in a variable. It prompts the user to enter a value and waits for the input. For example, read var will read input from the keyboard and store it in the variable var.

User Ueeieiie
by
7.8k points