bodruk
bodruk

Reputation: 3262

How do I set all ulimits unlimited for all users?

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

Upvotes: 3

Views: 4586

Answers (1)

ShellFish
ShellFish

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

Related Questions