linux的<<命令

谷歌解释

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
posted @ 2020-09-13 10:08  Bravo_Jack  阅读(546)  评论(0编辑  收藏  举报