Answers:
>>
将命令输出从其左侧重定向到右侧文件的末尾。
所以,
echo '* - nofile 65535' >> /etc/security/limits.conf
将追加 * - nofile 65535
到/etc/security/limits.conf
文件末尾,而不是* - nofile 65535
在屏幕上打印。
如果你有
echo '* - nofile 65535' > /etc/security/limits.conf
(请注意用>>
替换>
),已经存在的所有内容都/etc/security/limits.conf
将替换为* - nofile 65535
,而不是附加。
您可能还想阅读以下问题: