首页 > 技术文章 > linux的<<命令

lyzz1314 2020-09-13 10:08 原文

谷歌解释

The >> appends to a file or creates the file if it doesn't exist. The > overwrites the file if it exists or creates it if it doesn't exist.
反过来也是一样的

例子

tee /etc/docker/daemon.json <<-'EOF'
{
      XXX: XXX
}
EOF

推荐阅读