How do I set all ulimits unlimited for all users?

我的未来我决定 提交于 2019-12-11 01:45:40

问题


Yes, I want to remove all ulimits and set them to unlimited. How do I do this? Thanks!


回答1:


Use something like this:

 for opt in $(ulimit -a | sed 's/.*\-\([a-z]\)[^a-zA-Z].*$/\1/'); do
     ulimit -$opt ulimited
 done

Caution, check output of ulimit -a | sed 's/.*\-\([a-z]\)[^a-zA-Z].*$/\1/' first, ulimit -a output may differ from system to system.



来源:https://stackoverflow.com/questions/28068414/how-do-i-set-all-ulimits-unlimited-for-all-users

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!