echo要支持同C语言一样的\转义功能,只需要加上参数-e,如下所示:[~]#echo "Hello world.\nHello sea"Hello world.\nHello sea[~]#echo -e "Hello world.\nHello sea"Hello world.Hello sea