Syntax of the common read command in Shell: [python] read-p "Prompt" variable1 variable2 variableN-p "Prompt": displays the Prompt information (displayed in the same line as the user input) variable1: the first value entered by the user will be assigned to variable1variable2: The second value entered by the user will be assigned to variable2. sh file, input: [python] #! /Bin/bash read-p "Enter your name:" name echo "Hi, $ name. Let us be friends! "Save and close the file. Enter [python] chmod + x greet in the command line. sh. /greet. sh output: [python] Enter your name: Tomcat Hi, Tomcat. let us be friends! The following is an example file used to display the domain name information entered by the user: [python] #! /Bin/bash read-p "Enter the Internet domain name (e.g. nixcraft.com):" domain_name whois $ domain_name time setting you can use the-t parameter to limit the user input time. For example, use the following command to set the user to enter the parameter in 10 seconds: [python] #! /Bin/bash read-t 10-p "Enter the Internet domain name (e.g. nixcraft.com):" domain_name whois $ domain_name Enter the password and use the-s parameter to display user input. Example: [python] #! /Bin/bash read-s-p "Enter Password:" my_password echo "Your password-$ my_password"