小编Eli*_*Eli的帖子

在文件的最后一行之前插入 EOF 语句

我想插入这个

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但对于视觉糖果我想保持这种格式以及可读性。

sed gnu text-processing cat

4
推荐指数
2
解决办法
2925
查看次数

标签 统计

cat ×1

gnu ×1

sed ×1

text-processing ×1