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
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