覆盖文件 echo "hello" > filename 追加文件 echo "haha" >> filename 转载于:https://www.cnblogs.com/cocoat/p/7701397.html