我想插入这个
cat <<EOF >> /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
root soft nproc 65535
root hard nproc 65535
root soft nofile 65535
root hard nofile 65535
EOF
Run Code Online (Sandbox Code Playgroud)
进入文件的倒数第二行,在该# End of file
行之前。
我知道我可以使用其他方法来插入这个语句而不使用EOF
但对于视觉糖果我想保持这种格式以及可读性。