shell 写文件写入内容 2022-07-22 本文已影响0人 musk 方法一: sudo tee>/root/test.txt <<-'EOF' 写入内容 EOF 方法二: sudo cat>/root/test.txt <<END 写入内容 END