EOF.sh EOF的内容追加到test.conf
#!/bin/bash cat >> ~/test.conf << EOF fs.file-max = 999999 kernel.sysrq = 0 kernel.core_uses_pid = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536 EOF
EOF2.sh EOF的内容替换到test.conf
#!/bin/bash cat > ~/test.conf << EOF fs.file-max = 999999 kernel.sysrq = 0 kernel.core_uses_pid = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536 EOF