含义
End Of File:自定义文件终止符
输出多行到控制台
cat << EOF
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
EOF
输出多行到文件
输出多行到/home目录下limits.conf文件,如果该文件没有,会新建。
cat >> /home/limits.conf <<EOF
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
EOF