touch test.yaml echo "line1 line2" >> test.yaml cat test.yaml line1 line2
# 创建test.yaml文本文件 cat <<EOF > ./test.yaml line1 line2 EOF
touch test.yaml echo "line1 line2" >> test.yaml cat test.yaml line1 line2
# 创建test.yaml文本文件 cat <<EOF > ./test.yaml line1 line2 EOF