Reputation: 3262
Yes, I want to remove all ulimits
and set them to unlimited
. How do I do this? Thanks!
Upvotes: 3
Views: 4586
Reputation: 4551
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.
Upvotes: 2