# 在规范输入上显示一个字符串echo hello# 不输入行尾的换行符echo -n hello# 对加反斜线本义的字符进行解释echo -e 'hello\nworld'echo -e 'hostname\nhello' > 1.sh# 查看文件内容cat 1.shhostnamehello
# 在规范输入上显示一个字符串echo hello# 不输入行尾的换行符echo -n hello# 对加反斜线本义的字符进行解释echo -e 'hello\nworld'echo -e 'hostname\nhello' > 1.sh# 查看文件内容cat 1.shhostnamehello