the function of the echo command is to display a piece of text on the display, which generally acts as a hint. the general format of the command is: Echo [-n] string where option n means that the output text is not wrapped, the string can be quoted, or it can be unquoted. When you output a quoted string with the Echo command, the string is output as it is, and when you output an unquoted string with the echo command, each word in the string is output as a string, separated by a space between the strings. echo * Lists all files and directories in the current directory. echo *.jpg lists all files in JPEG image format. echo ${home}/public_html/*.jpg lists all JPEG files in the public_html directory in the HOME directory. Echo (option) (parameter) option-e: Activates the escape character. When using the-e option, the following characters in the string are handled in particular, rather than being treated as general text output:? \a a warning sound; \b Delete the previous character;? The \c is not added to the newline symbol at the end of the line but the cursor is still in the original position;? \ n line up and the cursor moves to the beginning; The cursor moves to the beginning of the line, but does not wrap; \ t inserts the same tab;?\v as \f; \ \ \ insert \ character;? \nnn Insert the ASCII character represented by NNN (octal); parameter variable: Specifies the variable to print. Echo-n no newline output $echo-n "123" $echo "456" final output 123456
echo of Shell Base command