echo "hello"> a.txt echo hello >a.txt 用hello覆盖a.txt内的内容 echo "hello">>a.txt echo hello>>a.txt 在a.txt的结尾追加hello